Mercurial > hg > soundsoftware-site
diff app/controllers/welcome_controller.rb @ 49:158a59127bbe luisf
The tip of the day only appears to logged in users.
author | luisf |
---|---|
date | Tue, 23 Nov 2010 14:57:07 +0000 |
parents | 513646585e45 |
children | 7acd282bee3c |
line wrap: on
line diff
--- a/app/controllers/welcome_controller.rb Tue Nov 23 13:41:39 2010 +0000 +++ b/app/controllers/welcome_controller.rb Tue Nov 23 14:57:07 2010 +0000 @@ -21,6 +21,14 @@ def index @news = News.latest User.current @projects = Project.latest User.current + + # tests if user is logged in to gfenerate the tips of the day list + if User.current.logged? + @tipsoftheday = Setting.tipoftheday_text + else + @tipsoftheday = '' + end + end def robots