Commit fc8b1a05aa973c0dbb9612692695158d78529970
1 parent
41e68281
Exists in
master
and in
28 other branches
ActionItem193: only text articles is now showed in the recent documents
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1534 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
1 changed file
with
2 additions
and
0 deletions
Show diff stats
app/models/recent_documents_block.rb
| ... | ... | @@ -15,6 +15,8 @@ class RecentDocumentsBlock < Block |
| 15 | 15 | owner.recent_documents(self.limit) |
| 16 | 16 | end |
| 17 | 17 | |
| 18 | + docs = docs.select{|d| d.kind_of?(TextArticle)} | |
| 19 | + | |
| 18 | 20 | block_title(_('Recent content')) + |
| 19 | 21 | content_tag('ul', docs.map {|item| content_tag('li', link_to(item.title, item.url))}.join("\n")) |
| 20 | 22 | ... | ... |