From: Andy Allan Date: Wed, 11 May 2022 15:08:48 +0000 (+0100) Subject: Use a secondary-actions nav for issue actions X-Git-Tag: live~2133^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/68d6b7279e547afab98057a2ea4c64ef3c53e37f Use a secondary-actions nav for issue actions This fits with actions on other pages, avoids using pipe characters, and resolves an issue with empty paragraphs. --- diff --git a/app/views/issues/show.html.erb b/app/views/issues/show.html.erb index ba2738b74..eba4448aa 100644 --- a/app/views/issues/show.html.erb +++ b/app/views/issues/show.html.erb @@ -10,13 +10,19 @@ <%= " | #{t('.last_updated_at', :datetime => l(@issue.updated_at.to_datetime, :format => :friendly), :displayname => @issue.user_updated.display_name)}" if @issue.user_updated %>

-

- <%= link_to t(".resolve"), resolve_issue_url(@issue), :method => :post if @issue.may_resolve? %> - <% if @issue.may_ignore? %> - | <%= link_to t(".ignore"), ignore_issue_url(@issue), :method => :post %> - <% end %> -

-

<%= link_to t(".reopen"), reopen_issue_url(@issue), :method => :post if @issue.may_reopen? %>

+ <% end %>