summaryrefslogtreecommitdiffstats
path: root/app/controllers/news_controller.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2008-03-05 15:41:54 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2008-03-05 15:41:54 +0000
commite951d8458413f02ba613163df862d1a352ed3692 (patch)
treec9f1ec441a1243ffa35bb35ba5865588c710b20e /app/controllers/news_controller.rb
parentbbe8ea29e8d3e6de60b96c08d60de9447bcceca9 (diff)
downloadredmine-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.rb2
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