aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/blog/shared
diff options
context:
space:
mode:
authorJoe Sak <joe@joesak.com>2011-07-04 09:04:56 -0700
committerJoe Sak <joe@joesak.com>2011-07-04 09:04:56 -0700
commitef71ace6ac1e3f2f0dfb51783b5aaeb819534eb3 (patch)
treec520beacb8adcc3ba74b0721370f7d9f92558be7 /app/views/blog/shared
parent0e4dbb28e923ca2a9065f23ba433ce74f9f0d42d (diff)
parent412d542817c379c870b34830aaace46f09651d9f (diff)
downloadrefinerycms-blog-ef71ace6ac1e3f2f0dfb51783b5aaeb819534eb3.tar.gz
refinerycms-blog-ef71ace6ac1e3f2f0dfb51783b5aaeb819534eb3.tar.bz2
refinerycms-blog-ef71ace6ac1e3f2f0dfb51783b5aaeb819534eb3.zip
Merge pull request #94 from JohanB/feature/disable_teaser_if_length_zero
Added ability to disable teaser independent of teaser length
Diffstat (limited to 'app/views/blog/shared')
-rw-r--r--app/views/blog/shared/_post.html.erb8
1 files changed, 6 insertions, 2 deletions
diff --git a/app/views/blog/shared/_post.html.erb b/app/views/blog/shared/_post.html.erb
index 0f65e1d..6cda22d 100644
--- a/app/views/blog/shared/_post.html.erb
+++ b/app/views/blog/shared/_post.html.erb
@@ -22,11 +22,15 @@
</section>
</header>
<section class='clearfix'>
- <%= blog_post_teaser(post) %>
+ <% if blog_post_teaser_enabled? %>
+ <%= blog_post_teaser(post) %>
+ <% else %>
+ <%= post.body.html_safe %>
+ <% end %>
</section>
<footer>
<p>
- <%= link_to t('read_more', :scope => 'blog.shared.posts'), blog_post_url(post) %>
+ <%= link_to t('read_more', :scope => 'blog.shared.posts'), blog_post_url(post) if blog_post_teaser_enabled? %>
</p>
<aside class='comment_count'>
<% if BlogPost.comments_allowed? %>