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
This commit is contained in:
1 parent
bbe8ea29e8
commit
e951d84584
35 files changed
+134
-17
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user