FIX: Show "Begin Discussion" button when there are 0 replies

This commit is contained in:
Robin Ward 2014-01-23 12:58:52 -05:00
parent 6ec1f93c05
commit c9cca78ab2
1 changed files with 1 additions and 1 deletions

View File

@ -1,5 +1,5 @@
<header>
<% 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') %>