From c9cca78ab284c68c40d5384ef6f390a2f0961fb1 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Thu, 23 Jan 2014 12:58:52 -0500 Subject: [PATCH] FIX: Show "Begin Discussion" button when there are 0 replies --- app/views/embed/comments.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/embed/comments.html.erb b/app/views/embed/comments.html.erb index 6a2d49afb0d..ed39f5d49fd 100644 --- a/app/views/embed/comments.html.erb +++ b/app/views/embed/comments.html.erb @@ -1,5 +1,5 @@
- <% if @topic_view.topic.posts_count == 0 %> + <% if @topic_view.topic.posts_count < 2 %> <%= link_to(I18n.t('embed.start_discussion'), @topic_view.topic.url, class: 'button', target: '_blank') %> <% elsif @topic_view.topic.posts_count > 10 %> <%= link_to(I18n.t('embed.continue'), @second_post_url, class: 'button', target: '_blank') %>