Browse Source

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
tags/4.0.0
Jean-Philippe Lang 6 years ago
parent
commit
7dbd9e8c3b
2 changed files with 13 additions and 11 deletions
  1. 10
    0
      app/views/issues/_action_menu_edit.html.erb
  2. 3
    11
      app/views/issues/show.html.erb

+ 10
- 0
app/views/issues/_action_menu_edit.html.erb View File

@@ -0,0 +1,10 @@
<div style="clear: both;"></div>
<%= render :partial => 'action_menu' %>

<div style="clear: both;"></div>
<% if @issue.editable? %>
<div id="update" style="display:none;">
<h3><%= l(:button_edit) %></h3>
<%= render :partial => 'edit' %>
</div>
<% end %>

+ 3
- 11
app/views/issues/show.html.erb View File

@@ -125,6 +125,8 @@ end %>
</div>
<% end %>

<%= render partial: 'action_menu_edit' if User.current.wants_comments_in_reverse_order? %>

<% if @journals.present? %>
<div id="history">
<h3><%=l(:label_history)%></h3>
@@ -132,17 +134,7 @@ end %>
</div>
<% end %>


<div style="clear: both;"></div>
<%= render :partial => 'action_menu' %>

<div style="clear: both;"></div>
<% if @issue.editable? %>
<div id="update" style="display:none;">
<h3><%= l(:button_edit) %></h3>
<%= render :partial => 'edit' %>
</div>
<% 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} %>

Loading…
Cancel
Save