Commit 132a097aa69068e0e98754c39a52746d61b2f597
1 parent
ab9757df
Exists in
master
and in
22 other branches
Make it possible to add extra RSS feeds on blogs
(ActionItem1770, ActionItem894)
Showing
1 changed file
with
1 additions
and
6 deletions
Show diff stats
app/controllers/my_profile/cms_controller.rb
| ... | ... | @@ -46,11 +46,6 @@ class CmsController < MyProfileController |
| 46 | 46 | ] |
| 47 | 47 | articles += special_article_types if params && params[:cms] |
| 48 | 48 | parent_id = params ? params[:parent_id] : nil |
| 49 | - if !parent_id or !Article.find(parent_id).has_posts? | |
| 50 | - articles += [ | |
| 51 | - RssFeed | |
| 52 | - ] | |
| 53 | - end | |
| 54 | 49 | if profile.enterprise? |
| 55 | 50 | articles << EnterpriseHomepage |
| 56 | 51 | end |
| ... | ... | @@ -58,7 +53,7 @@ class CmsController < MyProfileController |
| 58 | 53 | end |
| 59 | 54 | |
| 60 | 55 | def special_article_types |
| 61 | - [Folder, Blog, UploadedFile, Forum, Gallery] | |
| 56 | + [Folder, Blog, UploadedFile, Forum, Gallery, RssFeed] | |
| 62 | 57 | end |
| 63 | 58 | |
| 64 | 59 | def view | ... | ... |