Revision 1349:4ff3f8b81ab3 app/controllers
| app/controllers/welcome_controller.rb | ||
|---|---|---|
| 24 | 24 |
def index |
| 25 | 25 |
@site_project = Project.find_by_identifier "soundsoftware-site" |
| 26 | 26 |
@site_news = [] |
| 27 |
@site_news = News.latest_for @site_project if @site_project
|
|
| 27 |
@site_news = News.latest_for(@site_project, 3) if @site_project
|
|
| 28 | 28 |
|
| 29 | 29 |
# tests if user is logged in to generate the tips of the day list |
| 30 | 30 |
if User.current.logged? |
Also available in: Unified diff