summaryrefslogtreecommitdiffstats
path: root/app/views
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2019-03-15 10:51:22 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2019-03-15 10:51:22 +0000
commite26ab0d4a251cc8fcd476a6140bccfcd24a9c446 (patch)
treeff241ea8d3fa68a09572ce776484d23274c002e8 /app/views
parentc5c335924b8e8b3f5f8a631f918d07416536c9fd (diff)
downloadredmine-e26ab0d4a251cc8fcd476a6140bccfcd24a9c446.tar.gz
redmine-e26ab0d4a251cc8fcd476a6140bccfcd24a9c446.zip
Show recent documents first (#29725).
Patch by Yuichi HARADA. git-svn-id: http://svn.redmine.org/redmine/trunk@17972 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views')
-rw-r--r--app/views/documents/index.html.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/documents/index.html.erb b/app/views/documents/index.html.erb
index fc4090f55..c0458f8bf 100644
--- a/app/views/documents/index.html.erb
+++ b/app/views/documents/index.html.erb
@@ -18,7 +18,7 @@
<% if @grouped.empty? %><p class="nodata"><%= l(:label_no_data) %></p><% end %>
-<% @grouped.keys.sort.each do |group| %>
+<% @grouped.keys.sort.__send__(@sort_by == 'date' ? :reverse_each : :each) do |group| %>
<h3><%= group %></h3>
<%= render :partial => 'documents/document', :collection => @grouped[group] %>
<% end %>