X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/b470e01f840d1b954326f8f863e185ebe7f9b9f2..77d495ccdc4c6d07cb7795177c73ba541afc44e0:/app/views/redactions/show.html.erb diff --git a/app/views/redactions/show.html.erb b/app/views/redactions/show.html.erb index cf5116ede..22d17cd5d 100644 --- a/app/views/redactions/show.html.erb +++ b/app/views/redactions/show.html.erb @@ -13,12 +13,12 @@ <% if can?(:edit, Redaction) || can?(:destroy, Redaction) %> -
+
<% if can?(:edit, Redaction) %> - <%= button_to t(".edit"), edit_redaction_path(@redaction), :method => :get %> + <%= 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 %>
<% end %>