##// END OF EJS Templates
Introduce virtual MenuNodes (#15880)....
Introduce virtual MenuNodes (#15880). They are characterized by having a blank url. they will only be rendered if the user is authorized to see at least one of its children. they render as links which do nothing when clicked. Patch by Jan Schulz-Hofen. git-svn-id: http://svn.redmine.org/redmine/trunk@15501 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r14954:42b5c332b2c2
r15119:53710d80fc88
Show More
index.html.erb
38 lines | 1.0 KiB | text/plain | TextLexer
<div class="contextual">
<%= link_to l(:label_tracker_new), new_tracker_path, :class => 'icon icon-add' %>
<%= link_to l(:field_summary), fields_trackers_path, :class => 'icon icon-summary' %>
</div>
<h2><%=l(:label_tracker_plural)%></h2>
<table class="list trackers">
<thead><tr>
<th><%=l(:label_tracker)%></th>
<th></th>
<th></th>
</tr></thead>
<tbody>
<% for tracker in @trackers %>
<tr class="<%= cycle("odd", "even") %>">
<td class="name"><%= link_to tracker.name, edit_tracker_path(tracker) %></td>
<td>
<% unless tracker.workflow_rules.count > 0 %>
<span class="icon icon-warning">
<%= l(:text_tracker_no_workflow) %> (<%= link_to l(:button_edit), workflows_edit_path(:tracker_id => tracker) %>)
</span>
<% end %>
</td>
<td class="buttons">
<%= reorder_handle(tracker) %>
<%= delete_link tracker_path(tracker) %>
</td>
</tr>
<% end %>
</tbody>
</table>
<% html_title(l(:label_tracker_plural)) -%>
<%= javascript_tag do %>
$(function() { $("table.trackers tbody").positionedItems(); });
<% end %>