Files
Redmine/app/views/workflows/index.html.erb
Jean-Philippe Lang 7467c145c0 Replace uses of image_tag() with CSS (#21256).
* Replace image_tag() with CSS classes
* Create some CSS classes where necessary
* Change "check all" positioned on the right in "Trackers -> Summary" and
  "Roles -> Permissions report" instead of left like in "Worfklow"
* Add missing title attribute in a few places
* Makes some lines shorter while at it

Patch by Daniel Ritz.

git-svn-id: http://svn.redmine.org/redmine/trunk@15068 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-01-20 08:50:39 +00:00

36 lines
939 B
Plaintext

<%= title [l(:label_workflow), workflows_edit_path], l(:field_summary) %>
<% if @roles.empty? || @trackers.empty? %>
<p class="nodata"><%= l(:label_no_data) %></p>
<% else %>
<div class="autoscroll">
<table class="list">
<thead>
<tr>
<th></th>
<% @roles.each do |role| %>
<th>
<%= content_tag(role.builtin? ? 'em' : 'span', role.name) %>
</th>
<% end %>
</tr>
</thead>
<tbody>
<% @trackers.each do |tracker| -%>
<tr class="<%= cycle('odd', 'even') %>">
<td class="name"><%= tracker.name %></td>
<% @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')),
{:action => 'edit', :role_id => role, :tracker_id => tracker},
:title => l(:button_edit)) %>
</td>
<% end -%>
</tr>
<% end -%>
</tbody>
</table>
</div>
<% end %>