mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 15:16:08 +08:00
Let's put the "5 replies" back at the top of a comments section
This commit is contained in:
parent
bcc7f3aba4
commit
819ac61eb9
|
@ -1,10 +1,10 @@
|
|||
<header>
|
||||
<% 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') %>
|
||||
<span class='replies'><%= I18n.t('embed.replies', count: @topic_view.topic.posts_count - 1) %></span>
|
||||
<% end %>
|
||||
<span class='replies'><%= I18n.t('embed.replies', count: @topic_view.topic.posts_count - 1) %></span>
|
||||
</header>
|
||||
|
||||
<%- if @topic_view.posts.present? %>
|
||||
|
|
Loading…
Reference in New Issue
Block a user