Mercurial > hg > soundsoftware-site
comparison app/views/roles/index.html.erb @ 909:cbb26bc654de redmine-1.3
Update to Redmine 1.3-stable branch (Redmine SVN rev 8964)
author | Chris Cannam |
---|---|
date | Fri, 24 Feb 2012 19:09:32 +0000 |
parents | 513646585e45 |
children | 433d4f72a19b |
comparison
equal
deleted
inserted
replaced
908:c6c2cbd0afee | 909:cbb26bc654de |
---|---|
6 | 6 |
7 <table class="list"> | 7 <table class="list"> |
8 <thead><tr> | 8 <thead><tr> |
9 <th><%=l(:label_role)%></th> | 9 <th><%=l(:label_role)%></th> |
10 <th><%=l(:button_sort)%></th> | 10 <th><%=l(:button_sort)%></th> |
11 <th></th> | 11 <th></th> |
12 </tr></thead> | 12 </tr></thead> |
13 <tbody> | 13 <tbody> |
14 <% for role in @roles %> | 14 <% for role in @roles %> |
15 <tr class="<%= cycle("odd", "even") %>"> | 15 <tr class="<%= cycle("odd", "even") %>"> |
16 <td><%= content_tag(role.builtin? ? 'em' : 'span', link_to(role.name, :action => 'edit', :id => role)) %></td> | 16 <td><%= content_tag(role.builtin? ? 'em' : 'span', link_to(h(role.name), :action => 'edit', :id => role)) %></td> |
17 <td align="center" style="width:15%;"> | 17 <td align="center" style="width:15%;"> |
18 <% unless role.builtin? %> | 18 <% unless role.builtin? %> |
19 <%= reorder_links('role', {:action => 'edit', :id => role}) %> | 19 <%= reorder_links('role', {:action => 'edit', :id => role}) %> |
20 <% end %> | 20 <% end %> |
21 </td> | 21 </td> |
22 <td class="buttons"> | 22 <td class="buttons"> |
23 <%= link_to(l(:button_delete), { :action => 'destroy', :id => role }, | 23 <%= link_to(l(:button_delete), { :action => 'destroy', :id => role }, |
24 :method => :post, | 24 :method => :post, |
25 :confirm => l(:text_are_you_sure), | 25 :confirm => l(:text_are_you_sure), |
26 :class => 'icon icon-del') unless role.builtin? %> | 26 :class => 'icon icon-del') unless role.builtin? %> |
27 </td> | 27 </td> |
28 </tr> | 28 </tr> |
29 <% end %> | 29 <% end %> |
30 </tbody> | 30 </tbody> |
31 </table> | 31 </table> |