To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / app / views / workflows / index.html.erb @ 1591:63650ae64bf2
History | View | Annotate | Download (845 Bytes)
| 1 |
<%= title [l(:label_workflow), workflows_edit_path], l(:field_summary) %>
|
|---|---|
| 2 |
|
| 3 |
<% if @workflow_counts.empty? %>
|
| 4 |
<p class="nodata"><%= l(:label_no_data) %></p> |
| 5 |
<% else %>
|
| 6 |
<div class="autoscroll"> |
| 7 |
<table class="list"> |
| 8 |
<thead>
|
| 9 |
<tr>
|
| 10 |
<th></th> |
| 11 |
<% @workflow_counts.first.last.each do |role, count| %>
|
| 12 |
<th>
|
| 13 |
<%= content_tag(role.builtin? ? 'em' : 'span', h(role.name)) %>
|
| 14 |
</th>
|
| 15 |
|
| 16 |
<% end %>
|
| 17 |
</tr>
|
| 18 |
</thead>
|
| 19 |
<tbody>
|
| 20 |
<% @workflow_counts.each do |tracker, roles| -%>
|
| 21 |
<tr class="<%= cycle('odd', 'even') %>"> |
| 22 |
<td class="name"><%= h tracker %></td> |
| 23 |
<% roles.each do |role, count| -%>
|
| 24 |
<td>
|
| 25 |
<%= link_to((count > 0 ? count : image_tag('false.png')), {:action => 'edit', :role_id => role, :tracker_id => tracker}, :title => l(:button_edit)) %>
|
| 26 |
</td>
|
| 27 |
<% end -%>
|
| 28 |
</tr>
|
| 29 |
<% end -%>
|
| 30 |
</tbody>
|
| 31 |
</table>
|
| 32 |
</div>
|
| 33 |
<% end %>
|