Redmine 3.4.4
This commit is contained in:
commit
64924a6376
2112 changed files with 259028 additions and 0 deletions
35
app/views/workflows/index.html.erb
Normal file
35
app/views/workflows/index.html.erb
Normal file
|
@ -0,0 +1,35 @@
|
|||
<%= 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>
|
||||
<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 %>
|
Loading…
Add table
Add a link
Reference in a new issue