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:
parent
976b607ff5
commit
30ea168afd
1 changed files with 3 additions and 1 deletions
|
@ -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? %>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue