You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

list.rhtml 1.8KB

1234567891011121314151617181920212223242526272829303132333435
  1. <div class="contextual">
  2. <%= link_to l(:label_tracker_new), {:action => 'new'}, :class => 'icon icon-add' %>
  3. </div>
  4. <h2><%=l(:label_tracker_plural)%></h2>
  5. <table class="list">
  6. <thead><tr>
  7. <th><%=l(:label_tracker)%></th>
  8. <th></th>
  9. <th><%=l(:button_sort)%></th>
  10. <th></th>
  11. </tr></thead>
  12. <tbody>
  13. <% for tracker in @trackers %>
  14. <tr class="<%= cycle("odd", "even") %>">
  15. <td><%= link_to tracker.name, :action => 'edit', :id => tracker %></td>
  16. <td align="center"><% unless tracker.workflows.count > 0 %><span class="icon icon-warning"><%= l(:text_tracker_no_workflow) %> (<%= link_to l(:button_edit), {:controller => "roles", :action => "workflow", :tracker_id => tracker} %>)</span><% end %></td>
  17. <td align="center" style="width:15%;">
  18. <%= link_to image_tag('2uparrow.png', :alt => l(:label_sort_highest)), {:action => 'move', :id => tracker, :position => 'highest'}, :method => :post, :title => l(:label_sort_highest) %>
  19. <%= link_to image_tag('1uparrow.png', :alt => l(:label_sort_higher)), {:action => 'move', :id => tracker, :position => 'higher'}, :method => :post, :title => l(:label_sort_higher) %> -
  20. <%= link_to image_tag('1downarrow.png', :alt => l(:label_sort_lower)), {:action => 'move', :id => tracker, :position => 'lower'}, :method => :post, :title => l(:label_sort_lower) %>
  21. <%= link_to image_tag('2downarrow.png', :alt => l(:label_sort_lowest)), {:action => 'move', :id => tracker, :position => 'lowest'}, :method => :post, :title => l(:label_sort_lowest) %>
  22. </td>
  23. <td align="center" style="width:10%;">
  24. <%= button_to l(:button_delete), { :action => 'destroy', :id => tracker }, :confirm => l(:text_are_you_sure), :class => "button-small" %>
  25. </td>
  26. </tr>
  27. <% end %>
  28. </tbody>
  29. </table>
  30. <p class="pagination"><%= pagination_links_full @tracker_pages %></p>
  31. <% html_title(l(:label_tracker_plural)) -%>