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 @ 912:5e80956cc792
History | View | Annotate | Download (847 Bytes)
| 1 | 0:513646585e45 | Chris | <%= render :partial => 'action_menu' %>
|
|---|---|---|---|
| 2 | |||
| 3 | <h2><%=l(:label_workflow)%></h2> |
||
| 4 | |||
| 5 | <% if @workflow_counts.empty? %>
|
||
| 6 | <p class="nodata"><%= l(:label_no_data) %></p> |
||
| 7 | <% else %>
|
||
| 8 | 119:8661b858af72 | Chris | <div class="autoscroll"> |
| 9 | 0:513646585e45 | Chris | <table class="list"> |
| 10 | <thead>
|
||
| 11 | <tr>
|
||
| 12 | <th></th> |
||
| 13 | <% @workflow_counts.first.last.each do |role, count| %>
|
||
| 14 | <th>
|
||
| 15 | <%= content_tag(role.builtin? ? 'em' : 'span', h(role.name)) %>
|
||
| 16 | </th>
|
||
| 17 | 909:cbb26bc654de | Chris | |
| 18 | 0:513646585e45 | Chris | <% end %>
|
| 19 | </tr>
|
||
| 20 | </thead>
|
||
| 21 | <tbody>
|
||
| 22 | <% @workflow_counts.each do |tracker, roles| -%>
|
||
| 23 | <tr class="<%= cycle('odd', 'even') %>"> |
||
| 24 | <td><%= h tracker %></td> |
||
| 25 | <% roles.each do |role, count| -%>
|
||
| 26 | <td align="center"> |
||
| 27 | 245:051f544170fe | Chris | <%= link_to((count > 0 ? count : image_tag('false.png')), {:action => 'edit', :role_id => role, :tracker_id => tracker}, :title => l(:button_edit)) %>
|
| 28 | 0:513646585e45 | Chris | </td>
|
| 29 | <% end -%>
|
||
| 30 | </tr>
|
||
| 31 | <% end -%>
|
||
| 32 | </tbody>
|
||
| 33 | </table>
|
||
| 34 | 119:8661b858af72 | Chris | </div>
|
| 35 | 0:513646585e45 | Chris | <% end %> |