]> source.dussan.org Git - redmine.git/commitdiff
Replaces not-ok icon from workflows without any transitions with 0 highlighted with...
authorMarius Balteanu <marius.balteanu@zitec.com>
Sun, 8 Sep 2024 17:24:00 +0000 (17:24 +0000)
committerMarius Balteanu <marius.balteanu@zitec.com>
Sun, 8 Sep 2024 17:24:00 +0000 (17:24 +0000)
git-svn-id: https://svn.redmine.org/redmine/trunk@23040 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/assets/stylesheets/application.css
app/views/workflows/index.html.erb

index 9aec319259432aa78730854007b3e857c6e94bc3..3667f19e8a90b7ea45e9eeaf8ca7584bb983cd35 100644 (file)
@@ -152,6 +152,7 @@ div.modal .box p {margin: 0.3em 0;}
 .hidden {display: none;}
 .inline-block {display: inline-block;}
 .inline-flex {display: inline-flex;}
+.decoration-red, a.decoration-red {color: #c22 !important;}
 
 /***** Links *****/
 a, a:link, a:visited{ color: #169; text-decoration: none; }
@@ -1746,7 +1747,7 @@ span.icon-label {
 .icon-email-disabled:not(:has(svg)) { background-image: url(/email_disabled.png); }
 .icon-email-add:not(:has(svg)) { background-image: url(/email_add.png); }
 .icon-ok:not(svg) { background-image: url(/true.png); }
-.icon-not-ok { background-image: url(/false.png); }
+.icon-not-ok:not(svg) { background-image: url(/false.png); }
 .icon-link-break:not(:has(svg)) { background-image: url(/link_break.png); }
 .icon-list:not(:has(svg)) { background-image: url(/text_list_bullets.png); }
 .icon-close:not(:has(svg)) { background-image: url(/close.png); }
index 659b55c2577f92b340435f6a8c4bd7bc99930c40..806056050ebead9482dba4f503ec7d319cffa868 100644 (file)
@@ -22,9 +22,9 @@
   <% @roles.each do |role| -%>
   <% count = @workflow_counts[[tracker.id, role.id]] || 0 %>
     <td>
-      <%= link_to((count > 0 ? count : content_tag(:span, nil, :class => 'icon-only icon-not-ok')),
+      <%= link_to(count,
                   {:action => 'edit', :role_id => role, :tracker_id => tracker},
-                  :title => l(:button_edit)) %>
+                  :title => l(:button_edit), :class => ('decoration-red' if count == 0)) %>
     </td>
   <% end -%>
 </tr>