X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/b470e01f840d1b954326f8f863e185ebe7f9b9f2..84681ff8683bb7c8f410b2dc13ca5b8695e413a4:/app/views/redactions/show.html.erb diff --git a/app/views/redactions/show.html.erb b/app/views/redactions/show.html.erb index cf5116ede..fe073d123 100644 --- a/app/views/redactions/show.html.erb +++ b/app/views/redactions/show.html.erb @@ -5,7 +5,7 @@

<%= t ".user" %> - <%= link_to(@redaction.user.display_name, user_path(@redaction.user)) %> + <%= link_to @redaction.user.display_name, @redaction.user %>

<%= t ".description" %> @@ -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, :class => "btn btn-outline-danger", :data => { :turbo => true, :turbo_method => "DELETE", :turbo_confirm => t(".confirm") } %> <% end %>
<% end %>