Mercurial > hg > soundsoftware-site
diff app/views/workflows/.svn/text-base/index.rhtml.svn-base @ 0:513646585e45
* Import Redmine trunk SVN rev 3859
author | Chris Cannam |
---|---|
date | Fri, 23 Jul 2010 15:52:44 +0100 |
parents | |
children | af80e5618e9b |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/workflows/.svn/text-base/index.rhtml.svn-base Fri Jul 23 15:52:44 2010 +0100 @@ -0,0 +1,33 @@ +<%= render :partial => 'action_menu' %> + +<h2><%=l(:label_workflow)%></h2> + +<% if @workflow_counts.empty? %> +<p class="nodata"><%= l(:label_no_data) %></p> +<% else %> +<table class="list"> +<thead> + <tr> + <th></th> + <% @workflow_counts.first.last.each do |role, count| %> + <th> + <%= content_tag(role.builtin? ? 'em' : 'span', h(role.name)) %> + </th> + + <% end %> + </tr> +</thead> +<tbody> +<% @workflow_counts.each do |tracker, roles| -%> +<tr class="<%= cycle('odd', 'even') %>"> + <td><%= h tracker %></td> + <% roles.each do |role, count| -%> + <td align="center"> + <%= link_to((count > 1 ? count : image_tag('false.png')), {:action => 'edit', :role_id => role, :tracker_id => tracker}, :title => l(:button_edit)) %> + </td> + <% end -%> +</tr> +<% end -%> +</tbody> +</table> +<% end %>