From 68d6b7279e547afab98057a2ea4c64ef3c53e37f Mon Sep 17 00:00:00 2001 From: Andy Allan Date: Wed, 11 May 2022 16:08:48 +0100 Subject: [PATCH] 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. --- app/views/issues/show.html.erb | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) 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 %>
-- 2.39.5