From 7dbd9e8c3b6e730121f10828f4ebc1c73e0a9bab Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 23 Jun 2018 05:38:30 +0000 Subject: [PATCH] Move action links and edit form above the history when displaying comments in reverse order (#23518). git-svn-id: http://svn.redmine.org/redmine/trunk@17412 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/issues/_action_menu_edit.html.erb | 10 ++++++++++ app/views/issues/show.html.erb | 14 +++----------- 2 files changed, 13 insertions(+), 11 deletions(-) create mode 100644 app/views/issues/_action_menu_edit.html.erb diff --git a/app/views/issues/_action_menu_edit.html.erb b/app/views/issues/_action_menu_edit.html.erb new file mode 100644 index 000000000..a189d7c45 --- /dev/null +++ b/app/views/issues/_action_menu_edit.html.erb @@ -0,0 +1,10 @@ +
+<%= render :partial => 'action_menu' %> + +
+<% if @issue.editable? %> + +<% end %> diff --git a/app/views/issues/show.html.erb b/app/views/issues/show.html.erb index f1f279170..97a2448d6 100644 --- a/app/views/issues/show.html.erb +++ b/app/views/issues/show.html.erb @@ -125,6 +125,8 @@ end %> <% end %> +<%= render partial: 'action_menu_edit' if User.current.wants_comments_in_reverse_order? %> + <% if @journals.present? %>

<%=l(:label_history)%>

@@ -132,17 +134,7 @@ end %>
<% end %> - -
-<%= render :partial => 'action_menu' %> - -
-<% if @issue.editable? %> - -<% end %> +<%= render partial: 'action_menu_edit' unless User.current.wants_comments_in_reverse_order? %> <% other_formats_links do |f| %> <%= f.link_to 'Atom', :url => {:key => User.current.rss_key} %>