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.

index.html.erb 1.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <div class="contextual">
  2. <%= link_to l(:label_tracker_new), new_tracker_path, :class => 'icon icon-add' %>
  3. <%= link_to l(:field_summary), fields_trackers_path, :class => 'icon icon-summary' %>
  4. </div>
  5. <h2><%=l(:label_tracker_plural)%></h2>
  6. <table class="list trackers">
  7. <thead><tr>
  8. <th><%=l(:label_tracker)%></th>
  9. <th><%=l(:field_default_status)%></th>
  10. <th><%=l(:field_description)%></th>
  11. <th></th>
  12. <th></th>
  13. </tr></thead>
  14. <tbody>
  15. <% for tracker in @trackers %>
  16. <tr>
  17. <td class="name"><%= link_to tracker.name, edit_tracker_path(tracker) %></td>
  18. <td><%= tracker.default_status.name %></td>
  19. <td class="description"><%= tracker.description %></td>
  20. <td>
  21. <% unless tracker.workflow_rules.exists? %>
  22. <span class="icon icon-warning">
  23. <%= l(:text_tracker_no_workflow) %> (<%= link_to l(:button_edit), edit_workflows_path(:tracker_id => tracker) %>)
  24. </span>
  25. <% end %>
  26. </td>
  27. <td class="buttons">
  28. <%= reorder_handle(tracker) %>
  29. <%= link_to l(:button_copy), new_tracker_path(:copy => tracker), :class => 'icon icon-copy' %>
  30. <%= delete_link tracker_path(tracker) %>
  31. </td>
  32. </tr>
  33. <% end %>
  34. </tbody>
  35. </table>
  36. <% html_title(l(:label_tracker_plural)) -%>
  37. <%= javascript_tag do %>
  38. $(function() { $("table.trackers tbody").positionedItems(); });
  39. <% end %>