Mercurial > hg > soundsoftware-site
comparison app/controllers/welcome_controller.rb @ 335:7acd282bee3c cannam-pre-20110113-merge
Introduce render_project_short_description into projects helper; use it in welcome page (latest projects) as well as project lists, to avoid text formatting appearing in these lists
author | Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
---|---|
date | Wed, 30 Mar 2011 11:05:16 +0100 |
parents | 158a59127bbe |
children | ce85aa993384 |
comparison
equal
deleted
inserted
replaced
332:e665cc1fdf07 | 335:7acd282bee3c |
---|---|
16 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | 16 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
17 | 17 |
18 class WelcomeController < ApplicationController | 18 class WelcomeController < ApplicationController |
19 caches_action :robots | 19 caches_action :robots |
20 | 20 |
21 include ProjectsHelper | |
22 helper :projects | |
23 | |
21 def index | 24 def index |
22 @news = News.latest User.current | 25 @news = News.latest User.current |
23 @projects = Project.latest User.current | 26 @projects = Project.latest User.current |
24 | 27 |
25 # tests if user is logged in to gfenerate the tips of the day list | 28 # tests if user is logged in to gfenerate the tips of the day list |