]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/redactions/show.html.erb
Converge redaction forms to use bootstrap
[rails.git] / app / views / redactions / show.html.erb
index cf5116edebe36aca4ef3d923454804f3d4af4099..22d17cd5d5c3ad503e17be5cc3724456f2e834e5 100644 (file)
 </div>
 
 <% if can?(:edit, Redaction) || can?(:destroy, Redaction) %>
-<div class="buttons">
+<div>
   <% if can?(:edit, Redaction) %>
-    <%= button_to t(".edit"), edit_redaction_path(@redaction), :method => :get %></td>
+    <%= link_to t(".edit"), edit_redaction_path(@redaction), :class => "btn btn-outline-primary" %>
   <% end %>
   <% if can?(:destroy, Redaction) %>
-    <%= button_to t(".destroy"), @redaction, :method => "delete", :remote => true, :data => { :confirm => t(".confirm") } %>
+    <%= link_to t(".destroy"), @redaction, :method => "delete", :class => "btn btn-outline-danger", :remote => true, :data => { :confirm => t(".confirm") } %>
   <% end %>
 </div>
 <% end %>