diff 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
line wrap: on
line diff
--- a/app/views/roles/index.html.erb	Fri Feb 24 18:36:29 2012 +0000
+++ b/app/views/roles/index.html.erb	Fri Feb 24 19:09:32 2012 +0000
@@ -8,12 +8,12 @@
   <thead><tr>
     <th><%=l(:label_role)%></th>
     <th><%=l(:button_sort)%></th>
-	<th></th>
+  <th></th>
   </tr></thead>
   <tbody>
 <% for role in @roles %>
   <tr class="<%= cycle("odd", "even") %>">
-  <td><%= content_tag(role.builtin? ? 'em' : 'span', link_to(role.name, :action => 'edit', :id => role)) %></td>
+  <td><%= content_tag(role.builtin? ? 'em' : 'span', link_to(h(role.name), :action => 'edit', :id => role)) %></td>
   <td align="center" style="width:15%;">
   <% unless role.builtin? %>
     <%= reorder_links('role', {:action => 'edit', :id => role}) %>
@@ -21,9 +21,9 @@
   </td>
   <td class="buttons">
     <%= link_to(l(:button_delete), { :action => 'destroy', :id => role },
-    															:method => :post, 
-    															:confirm => l(:text_are_you_sure),
-    															:class => 'icon icon-del') unless role.builtin? %>
+                                  :method => :post,
+                                  :confirm => l(:text_are_you_sure),
+                                  :class => 'icon icon-del') unless role.builtin? %>
   </td>
   </tr>
 <% end %>