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/news_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/news_controller.rb')
-rw-r--r-- | app/controllers/news_controller.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/controllers/news_controller.rb b/app/controllers/news_controller.rb index 66ed61cf4..c9ba6b991 100644 --- a/app/controllers/news_controller.rb +++ b/app/controllers/news_controller.rb @@ -36,6 +36,8 @@ class NewsController < ApplicationController end def show + @comments = @news.comments + @comments.reverse! if User.current.wants_comments_in_reverse_order? end def new |