diff --git a/app/controllers/my_profile/profile_design_controller.rb b/app/controllers/my_profile/profile_design_controller.rb index 6bb60ab..108ccf0 100644 --- a/app/controllers/my_profile/profile_design_controller.rb +++ b/app/controllers/my_profile/profile_design_controller.rb @@ -3,7 +3,7 @@ class ProfileDesignController < BoxOrganizerController needs_profile def available_blocks - @available_blocks ||= [ Block, ArticleBlock, TagsBlock ] + @available_blocks ||= [ Block, ArticleBlock, TagsBlock, RecentDocumentsBlock ] end end diff --git a/app/models/recent_documents_block.rb b/app/models/recent_documents_block.rb index 9e3430f..b02c72a 100644 --- a/app/models/recent_documents_block.rb +++ b/app/models/recent_documents_block.rb @@ -14,6 +14,7 @@ class RecentDocumentsBlock < Block owner.recent_documents(self.limit) end + content_tag('h3', _('Recent content'), :class => 'block-title') + content_tag('ul', docs.map {|item| content_tag('li', link_to(item.title, item.url))}.join("\n")) end -- libgit2 0.21.2