From 819ac61eb9173ccf0dad16c80c1c3e99dcc51fb9 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Mon, 13 Jan 2014 14:15:48 -0500 Subject: [PATCH] Let's put the "5 replies" back at the top of a comments section --- app/views/embed/comments.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/embed/comments.html.erb b/app/views/embed/comments.html.erb index 539cc0ff1cc..52f33dcab9d 100644 --- a/app/views/embed/comments.html.erb +++ b/app/views/embed/comments.html.erb @@ -1,10 +1,10 @@
<% if @topic_view.topic.posts_count == 0 %> <%= 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') %> - <%= I18n.t('embed.replies', count: @topic_view.topic.posts_count - 1) %> <% end %> + <%= I18n.t('embed.replies', count: @topic_view.topic.posts_count - 1) %>
<%- if @topic_view.posts.present? %>