X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/4abd9cfcf19701bf43322374c5df6dd586449e54..978ba726d95aa7f739c19be682259879ef8c2584:/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 %>