Commit a2a4585429739bf0cefe532417d254989e0f6133

Authored by Rodrigo Souto
Committed by Antonio Terceiro
1 parent d924714f

Folder's view page list children by last update

(ActionItem1683)
Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/helpers/folder_helper.rb
@@ -7,7 +7,7 @@ module FolderHelper @@ -7,7 +7,7 @@ module FolderHelper
7 content_tag( 7 content_tag(
8 'table', 8 'table',
9 content_tag('tr', content_tag('th', _('Title')) + content_tag('th', _('Last update'))) + 9 content_tag('tr', content_tag('th', _('Title')) + content_tag('th', _('Last update'))) +
10 - articles.map {|item| display_article_in_listing(item, recursive, 0)}.join('') 10 + articles.sort_by { |article| article.updated_at }.reverse.map {|item| display_article_in_listing(item, recursive, 0)}.join('')
11 ) 11 )
12 else 12 else
13 content_tag('em', _('(empty folder)')) 13 content_tag('em', _('(empty folder)'))