FIX: Show "Begin Discussion" button when there are 0 replies
This commit is contained in:
parent
6ec1f93c05
commit
c9cca78ab2
|
@ -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') %>
|
||||
|
|
Loading…
Reference in New Issue