From efb140d3d5cdd0fc82a89dae539d653774b097f6 Mon Sep 17 00:00:00 2001
From: Mathieu Othacehe <othacehe@gnu.org>
Date: Thu, 18 Feb 2021 15:37:10 +0100
Subject: [PATCH] Remove the evaluation restart dropdown arrow.

* src/cuirass/templates.scm: Remove the evaluation restart dropdown arrow.
* src/static/css/cuirass.css (no-dropdown-arrow): New rule.
---
 src/cuirass/templates.scm  | 29 +++++++++++++++--------------
 src/static/css/cuirass.css |  5 +++++
 2 files changed, 20 insertions(+), 14 deletions(-)

diff --git a/src/cuirass/templates.scm b/src/cuirass/templates.scm
index a57653b2..56816ed0 100644
--- a/src/cuirass/templates.scm
+++ b/src/cuirass/templates.scm
@@ -506,20 +506,21 @@ system whose names start with " (code "guile-") ":" (br)
                         (td ,(input-changes (assq-ref row #:checkouts)))
                         (td ,@(evaluation-badges row))
                         (td
-                         (div (@ (class "dropdown"))
-                              (a (@ (class "oi oi-menu dropdown-toggle")
-                                    (href "#")
-                                    (data-toggle "dropdown")
-                                    (role "button")
-                                    (aria-haspopup "true")
-                                    (aria-expanded "false"))
-                                 " ")
-                              (div (@ (class "dropdown-menu"))
-                                   (a (@ (class "dropdown-item")
-                                         (href "/admin/evaluation/"
-                                               ,(assq-ref row #:id)
-                                               "/restart"))
-                                      "Restart"))))))
+                         (div
+                          (@ (class "dropdown"))
+                          (a (@ (class "oi oi-menu dropdown-toggle no-dropdown-arrow")
+                                (href "#")
+                                (data-toggle "dropdown")
+                                (role "button")
+                                (aria-haspopup "true")
+                                (aria-expanded "false"))
+                             " ")
+                          (div (@ (class "dropdown-menu"))
+                               (a (@ (class "dropdown-item")
+                                     (href "/admin/evaluation/"
+                                           ,(assq-ref row #:id)
+                                           "/restart"))
+                                  "Restart"))))))
                  evaluations)))))
     ,(if (null? evaluations)
          (pagination "" "" "" "")
diff --git a/src/static/css/cuirass.css b/src/static/css/cuirass.css
index 4e97c3de..e713b6ff 100644
--- a/src/static/css/cuirass.css
+++ b/src/static/css/cuirass.css
@@ -37,3 +37,8 @@ a.dropdown-toggle:focus + .dropdown-menu {
     visibility: hidden;
     transition: visibility 0.5s;
 }
+
+/* Remove the dropdown-toggle arrow. */
+.no-dropdown-arrow::after {
+    content: none;
+}
-- 
GitLab