aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUģis Ozols <ugis.ozolss@gmail.com>2012-06-06 01:59:29 -0700
committerUģis Ozols <ugis.ozolss@gmail.com>2012-06-06 01:59:29 -0700
commit81dd47e6490ca981e4cb541d353cff0e85c03084 (patch)
treed48ba24526c1caba0eb4901b0ab57a01bf69ac51
parent976b607ff564f08eb1c10cac6f1ab2a90b656cec (diff)
parent30ea168afddeded7d9a870b607d43a9bb4a899d3 (diff)
downloadrefinerycms-blog-81dd47e6490ca981e4cb541d353cff0e85c03084.tar.gz
refinerycms-blog-81dd47e6490ca981e4cb541d353cff0e85c03084.tar.bz2
refinerycms-blog-81dd47e6490ca981e4cb541d353cff0e85c03084.zip
Merge pull request #243 from ryandeussing/master
Hide 'read more' link when it is not needed
-rw-r--r--app/views/refinery/blog/shared/_post.html.erb4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/views/refinery/blog/shared/_post.html.erb b/app/views/refinery/blog/shared/_post.html.erb
index 1a52fd4..5b90c8e 100644
--- a/app/views/refinery/blog/shared/_post.html.erb
+++ b/app/views/refinery/blog/shared/_post.html.erb
@@ -30,7 +30,9 @@
</section>
<footer>
<p>
- <%= link_to t('read_more', :scope => 'refinery.blog.shared.posts'), refinery.blog_post_path(post) if blog_post_teaser_enabled? %>
+ <% if blog_post_teaser_enabled? && post.custom_teaser.present? %>
+ <%= link_to t('read_more', :scope => 'refinery.blog.shared.posts'), refinery.blog_post_path(post) %>
+ <% end %>
</p>
<aside class='comment_count'>
<% if Refinery::Blog::Post.comments_allowed? %>