summaryrefslogtreecommitdiff
path: root/app/helpers
diff options
context:
space:
mode:
authorhukl <contact@smyck.org>2009-09-07 15:39:10 +0200
committerhukl <contact@smyck.org>2009-09-07 15:39:10 +0200
commit78391adf0d7c241a6b1385621d98b6972d799d3a (patch)
tree7d12a7ba1876b5b31caaf3d25a1831ff2997bfdc /app/helpers
parentfa2052b1ed8b51a950d18ed8c620a37dd54c23d3 (diff)
parentbfba5e1da6e890e22e8b7134a94807c5da757d94 (diff)
Merge branch 'featured_articles'
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/content_helper.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/helpers/content_helper.rb b/app/helpers/content_helper.rb
index d9ec5db..5a288ed 100644
--- a/app/helpers/content_helper.rb
+++ b/app/helpers/content_helper.rb
@@ -20,6 +20,11 @@ module ContentHelper
20 render :partial => 'content/tags' 20 render :partial => 'content/tags'
21 end 21 end
22 22
23 def featured_articles
24 @featured_articles = FeaturedArticle.all
25 render :partial => 'content/featured_articles'
26 end
27
23 def headline_image 28 def headline_image
24 image = @page.assets.images.first 29 image = @page.assets.images.first
25 if image 30 if image