diff options
author | Ryan Deussing <ryandeussing@gmail.com> | 2012-06-05 00:48:54 -0300 |
---|---|---|
committer | Ryan Deussing <ryandeussing@gmail.com> | 2012-06-05 00:48:54 -0300 |
commit | 30ea168afddeded7d9a870b607d43a9bb4a899d3 (patch) | |
tree | d48ba24526c1caba0eb4901b0ab57a01bf69ac51 /app | |
parent | 976b607ff564f08eb1c10cac6f1ab2a90b656cec (diff) | |
download | refinerycms-blog-30ea168afddeded7d9a870b607d43a9bb4a899d3.tar.gz refinerycms-blog-30ea168afddeded7d9a870b607d43a9bb4a899d3.tar.bz2 refinerycms-blog-30ea168afddeded7d9a870b607d43a9bb4a899d3.zip |
Don't show 'read more' link in situations where the full post is already displayed because there is no teaser.
Diffstat (limited to 'app')
-rw-r--r-- | app/views/refinery/blog/shared/_post.html.erb | 4 |
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? %> |