Don't show 'read more' link in situations where the full post is already displayed because there is no teaser.

This commit is contained in:
Ryan Deussing 2012-06-05 00:48:54 -03:00
parent 976b607ff5
commit 30ea168afd

View file

@ -30,7 +30,9 @@
</section> </section>
<footer> <footer>
<p> <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> </p>
<aside class='comment_count'> <aside class='comment_count'>
<% if Refinery::Blog::Post.comments_allowed? %> <% if Refinery::Blog::Post.comments_allowed? %>