guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[no subject]


From: Ludovic Courtès
Date: Fri, 7 Jun 2024 12:22:07 -0400 (EDT)

branch: main
commit 679d3765ce138af9123217f2a70e9d09d123005b
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Fri Jun 7 11:21:58 2024 +0200

    templates: Add “Delete” button for disabled jobsets.
    
    * src/cuirass/templates.scm (evaluation-info-table): Add “Delete” button.
---
 src/cuirass/templates.scm | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/src/cuirass/templates.scm b/src/cuirass/templates.scm
index ef6c773..005a1f4 100644
--- a/src/cuirass/templates.scm
+++ b/src/cuirass/templates.scm
@@ -1087,11 +1087,16 @@ NAME have been checked; it is #f when that information 
is unavailable."
            (_ ""))
          `(div (@ (class "alert alert-danger"))
                "This jobset is currently disabled. "
-               (a (@ (class "btn btn-info")
+               (a (@ (class "btn btn-info mx-2")
                      (href ,(string-append
                              "/admin/specifications/activate/"
                              name)))
-                  "Activate")))
+                  "Activate")
+               (a (@ (class "btn btn-danger mx-2")
+                     (href ,(string-append
+                             "/admin/specifications/delete/"
+                             name)))
+                  "Delete")))
 
     (table
      (@ (class "table table-sm table-hover table-striped"))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]