annotate app/views/roles/index.html.erb @ 1524:82fac3dcf466
redmine-2.5-integration
Fix failure to interpret Javascript when autocompleting members for project
author |
Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
date |
Thu, 11 Sep 2014 10:24:38 +0100 |
parents |
261b3d9a4903 |
children |
|
rev |
line source |
Chris@0
|
1 <div class="contextual">
|
Chris@1115
|
2 <%= link_to l(:label_role_new), new_role_path, :class => 'icon icon-add' %>
|
Chris@1464
|
3 <%= link_to l(:label_permissions_report), permissions_roles_path, :class => 'icon icon-summary' %>
|
Chris@0
|
4 </div>
|
Chris@0
|
5
|
Chris@0
|
6 <h2><%=l(:label_role_plural)%></h2>
|
Chris@0
|
7
|
Chris@0
|
8 <table class="list">
|
Chris@0
|
9 <thead><tr>
|
Chris@0
|
10 <th><%=l(:label_role)%></th>
|
Chris@0
|
11 <th><%=l(:button_sort)%></th>
|
Chris@909
|
12 <th></th>
|
Chris@0
|
13 </tr></thead>
|
Chris@0
|
14 <tbody>
|
Chris@0
|
15 <% for role in @roles %>
|
Chris@0
|
16 <tr class="<%= cycle("odd", "even") %>">
|
Chris@1464
|
17 <td class="name"><%= content_tag(role.builtin? ? 'em' : 'span', link_to(h(role.name), edit_role_path(role))) %></td>
|
Chris@1464
|
18 <td class="reorder">
|
Chris@0
|
19 <% unless role.builtin? %>
|
Chris@1115
|
20 <%= reorder_links('role', {:action => 'update', :id => role}, :put) %>
|
Chris@0
|
21 <% end %>
|
Chris@0
|
22 </td>
|
Chris@0
|
23 <td class="buttons">
|
Chris@1115
|
24 <%= link_to l(:button_copy), new_role_path(:copy => role), :class => 'icon icon-copy' %>
|
Chris@1115
|
25 <%= delete_link role_path(role) unless role.builtin? %>
|
Chris@0
|
26 </td>
|
Chris@0
|
27 </tr>
|
Chris@0
|
28 <% end %>
|
Chris@0
|
29 </tbody>
|
Chris@0
|
30 </table>
|
Chris@0
|
31
|
Chris@0
|
32 <p class="pagination"><%= pagination_links_full @role_pages %></p>
|
Chris@0
|
33
|
Chris@0
|
34 <% html_title(l(:label_role_plural)) -%>
|