diff --git a/app/controllers/messages_controller.rb b/app/controllers/messages_controller.rb index 1baf5d62c..150071b41 100644 --- a/app/controllers/messages_controller.rb +++ b/app/controllers/messages_controller.rb @@ -43,7 +43,7 @@ class MessagesController < ApplicationController @reply_pages = Paginator.new @reply_count, REPLIES_PER_PAGE, page @replies = @topic.children. includes(:author, :attachments, {:board => :project}). - reorder("#{Message.table_name}.created_on ASC"). + reorder("#{Message.table_name}.created_on DESC"). limit(@reply_pages.per_page). offset(@reply_pages.offset). all diff --git a/app/views/messages/show.html.erb b/app/views/messages/show.html.erb index 6f7e5d5ef..aecfc332a 100644 --- a/app/views/messages/show.html.erb +++ b/app/views/messages/show.html.erb @@ -124,7 +124,7 @@ - +
<%= reply_count += 1 %>楼 <%= reply_count += 1 %>楼
<%= link_to(