]> source.dussan.org Git - redmine.git/commitdiff
Makes 'delete links' the same on admin views.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 12 Sep 2009 09:25:39 +0000 (09:25 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 12 Sep 2009 09:25:39 +0000 (09:25 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2872 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/custom_fields/_index.rhtml
app/views/enumerations/list.rhtml
app/views/issue_statuses/list.rhtml
app/views/roles/list.rhtml
app/views/trackers/list.rhtml

index 1417dd4bb8c1fbe488baa9a179b303916b7bf90a..c70fbea484c920ca5afa38de205572fdb020a8e8 100644 (file)
                        <td align="center"><%= l(:label_x_projects, :count => custom_field.projects.count) if custom_field.is_a? IssueCustomField and !custom_field.is_for_all? %></td>
                        <% end %>
                  <td align="center" style="width:15%;"><%= reorder_links('custom_field', {:action => 'edit', :id => custom_field}) %></td>
-                       <td align="center">
-                               <%= button_to l(:button_delete), { :action => 'destroy', :id => custom_field }, :confirm => l(:text_are_you_sure), :class => "button-small" %>
+                       <td class="buttons">
+                               <%= link_to(l(:button_delete), { :action => 'destroy', :id => custom_field },
+                                                                                                                                                        :method => :post,
+                                                                                                                                                        :confirm => l(:text_are_you_sure),
+                                                                                                                                                        :class => 'icon icon-del') %>
                  </td>
                </tr>
        <% end; reset_cycle %>
index 8143ad0f39f500685c7caeaa830d87d07e6848ff..3ae14448778c4041605584717108e5af5997bd34 100644 (file)
     <td><%= link_to h(enumeration), :action => 'edit', :id => enumeration %></td>
     <td style="width:15%;"><%= image_tag('true.png') if enumeration.is_default? %></td>
     <td style="width:15%;"><%= reorder_links('enumeration', {:action => 'update', :id => enumeration}) %></td>
-    <td align="center" style="width:10%;">
-    <%= link_to l(:button_delete), { :action => 'destroy', :id => enumeration }, :method => :post, :confirm => l(:text_are_you_sure), :class => "icon icon-del" %>
+    <td class="buttons">
+    <%= link_to l(:button_delete), { :action => 'destroy', :id => enumeration }, 
+                                                                                                                        :method => :post,
+                                                                                                                        :confirm => l(:text_are_you_sure),
+                                                                                                                        :class => 'icon icon-del' %>
     </td>
 </tr>
 <% end %>
index fd4e3e8b20912a99e5668e92906d03ee2f0c8ce9..ca973153d4c515972c8b8e4aea437ab9b43b6965 100644 (file)
   <td align="center"><%= image_tag 'true.png' if status.is_default? %></td>
   <td align="center"><%= image_tag 'true.png' if status.is_closed? %></td>
   <td align="center" style="width:15%;"><%= reorder_links('issue_status', {:action => 'update', :id => status}) %></td>
-  <td align="center" style="width:10%;">
-    <%= button_to l(:button_delete), { :action => 'destroy', :id => status }, :confirm => l(:text_are_you_sure), :class => "button-small" %>
+  <td class="buttons">
+    <%= link_to(l(:button_delete), { :action => 'destroy', :id => status },
+                                                                                                                        :method => :post,
+                                                                                                                        :confirm => l(:text_are_you_sure),
+                                                                                                                        :class => 'icon icon-del') %>
   </td>
   </tr>
 <% end %>
index 32ff7160cde579c52bf9740e49ea8eb4ec222e90..41878146be0d45a619c9dd958652c802bdbd6e3b 100644 (file)
     <%= reorder_links('role', {:action => 'edit', :id => role}) %>
   <% end %>
   </td>
-  <td align="center" style="width:10%;">
-    <%= button_to(l(:button_delete), { :action => 'destroy', :id => role }, :confirm => l(:text_are_you_sure), :class => "button-small", :disabled => role.builtin? ) %>
+  <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? %>
   </td>
   </tr>
 <% end %>
index 06eaf71050229339d07e1d6e4c5e2ebf7b10a18e..ab6eba57530fa3cab5b9dcf2b505ad7bff0c8f54 100644 (file)
   <td><%= link_to tracker.name, :action => 'edit', :id => tracker %></td>
   <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>
   <td align="center" style="width:15%;"><%= reorder_links('tracker', {:action => 'edit', :id => tracker}) %></td>
-  <td align="center" style="width:10%;">
-    <%= button_to l(:button_delete), { :action => 'destroy', :id => tracker }, :confirm => l(:text_are_you_sure), :class => "button-small" %>
+  <td class="buttons">
+    <%= link_to(l(:button_delete), { :action => 'destroy', :id => tracker },
+                                                                                                                        :method => :post,
+                                                                                                                        :confirm => l(:text_are_you_sure),
+                                                                                                                        :class => 'icon icon-del') %>
   </td>
   </tr>
 <% end %>