diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-03-05 15:41:54 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-03-05 15:41:54 +0000 |
commit | e951d8458413f02ba613163df862d1a352ed3692 (patch) | |
tree | c9f1ec441a1243ffa35bb35ba5865588c710b20e /app/controllers/messages_controller.rb | |
parent | bbe8ea29e8d3e6de60b96c08d60de9447bcceca9 (diff) | |
download | redmine-e951d8458413f02ba613163df862d1a352ed3692.tar.gz redmine-e951d8458413f02ba613163df862d1a352ed3692.zip |
Add a user preference to choose how comments/replies are displayed: in chronological or reverse chronological order (#589, #776).
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1197 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/messages_controller.rb')
-rw-r--r-- | app/controllers/messages_controller.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/controllers/messages_controller.rb b/app/controllers/messages_controller.rb index 49f4ba77c..64a7fa1c9 100644 --- a/app/controllers/messages_controller.rb +++ b/app/controllers/messages_controller.rb @@ -29,6 +29,8 @@ class MessagesController < ApplicationController # Show a topic and its replies def show + @replies = @topic.children + @replies.reverse! if User.current.wants_comments_in_reverse_order? @reply = Message.new(:subject => "RE: #{@message.subject}") render :action => "show", :layout => false if request.xhr? end |