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