Commit d6d81063148bfe0df498c71aa7190f442ef91356
Committed by
Antonio Terceiro
1 parent
2f66c34a
Exists in
master
and in
8 other branches
The home shows as portal news only the highlighted ones that are not listed abov…
…e in the highlighted news
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/controllers/public/home_controller.rb
| @@ -7,8 +7,8 @@ class HomeController < PublicController | @@ -7,8 +7,8 @@ class HomeController < PublicController | ||
| 7 | @news_cache_key = environment.portal_news_cache_key | 7 | @news_cache_key = environment.portal_news_cache_key |
| 8 | if !read_fragment(@news_cache_key) | 8 | if !read_fragment(@news_cache_key) |
| 9 | portal_community = environment.portal_community | 9 | portal_community = environment.portal_community |
| 10 | - @portal_news = portal_community.news(5) | ||
| 11 | @highlighted_news = portal_community.news(2, true) | 10 | @highlighted_news = portal_community.news(2, true) |
| 11 | + @portal_news = portal_community.news(7, true) - @highlighted_news | ||
| 12 | @area_news = environment.portal_folders | 12 | @area_news = environment.portal_folders |
| 13 | end | 13 | end |
| 14 | end | 14 | end |