Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Display issue edit form above History in reverse chronological order #47

Open
wants to merge 1 commit into from

1 participant

Dmitry Babenko
Dmitry Babenko

Issue edit form should respect preference "Display comments: in reverse chronological order" and be displayed above the History in this case. In other words, edit form should be displayed near the most recent history item. http://www.redmine.org/issues/7637

Toshi MARUYAMA marutosi referenced this pull request from a commit April 22, 2012
Commit has since been removed from the repository and is no longer available.
Toshi MARUYAMA marutosi referenced this pull request from a commit September 23, 2012
Commit has since been removed from the repository and is no longer available.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 9 additions and 1 deletion. Show diff stats Hide diff stats

  1. 10  app/views/issues/show.html.erb
10  app/views/issues/show.html.erb
@@ -82,6 +82,14 @@
82 82
 
83 83
 </div>
84 84
 
  85
+<% if User.current.wants_comments_in_reverse_order? && authorize_for('issues', 'edit') %>
  86
+  <div id="update" style="display:none;">
  87
+  <h3><%= l(:button_update) %></h3>
  88
+  <%= render :partial => 'edit' %>
  89
+  </div>
  90
+  <div style="clear: both;"></div>
  91
+<% end %>
  92
+
85 93
 <% if @changesets.present? %>
86 94
 <div id="issue-changesets">
87 95
 <h3><%=l(:label_associated_revisions)%></h3>
@@ -101,7 +109,7 @@
101 109
 <%= render :partial => 'action_menu' %>
102 110
 
103 111
 <div style="clear: both;"></div>
104  
-<% if authorize_for('issues', 'edit') %>
  112
+<% if not User.current.wants_comments_in_reverse_order? && authorize_for('issues', 'edit') %>
105 113
   <div id="update" style="display:none;">
106 114
   <h3><%= l(:button_update) %></h3>
107 115
   <%= render :partial => 'edit' %>
Commit_comment_tip

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.