Let's put the "5 replies" back at the top of a comments section

This commit is contained in:
Robin Ward 2014-01-13 14:15:48 -05:00
parent bcc7f3aba4
commit 819ac61eb9
1 changed files with 2 additions and 2 deletions

View File

@ -1,10 +1,10 @@
<header> <header>
<% if @topic_view.topic.posts_count == 0 %> <% if @topic_view.topic.posts_count == 0 %>
<%= link_to(I18n.t('embed.start_discussion'), @topic_view.topic.url, class: 'button', target: '_blank') %> <%= link_to(I18n.t('embed.start_discussion'), @topic_view.topic.url, class: 'button', target: '_blank') %>
<% elsif @topic_view.topic.posts_count > 10 %> <% else %>
<%= link_to(I18n.t('embed.continue'), @second_post_url, class: 'button', target: '_blank') %> <%= link_to(I18n.t('embed.continue'), @second_post_url, class: 'button', target: '_blank') %>
<span class='replies'><%= I18n.t('embed.replies', count: @topic_view.topic.posts_count - 1) %></span>
<% end %> <% end %>
<span class='replies'><%= I18n.t('embed.replies', count: @topic_view.topic.posts_count - 1) %></span>
</header> </header>
<%- if @topic_view.posts.present? %> <%- if @topic_view.posts.present? %>