Adjustments to embedded content
This commit is contained in:
parent
06435db4d7
commit
55918e6835
|
@ -87,4 +87,4 @@ a[href].button {
|
||||||
background-color: #eee;
|
background-color: #eee;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,13 +1,10 @@
|
||||||
<header>
|
<header>
|
||||||
<%- if @topic_view.topic.posts_count > 1 %>
|
<% 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 %>
|
||||||
<%= link_to(I18n.t('embed.continue'), @second_post_url, class: 'button', target: '_blank') %>
|
<%= 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>
|
<span class='replies'><%= I18n.t('embed.replies', count: @topic_view.topic.posts_count - 1) %></span>
|
||||||
|
<% end %>
|
||||||
<%- else %>
|
|
||||||
<%= link_to(I18n.t('embed.start_discussion'), @topic_view.topic.url, class: 'button', target: '_blank') %>
|
|
||||||
<%- end if %>
|
|
||||||
|
|
||||||
<%= link_to(image_tag(SiteSetting.logo_url, class: 'logo'), Discourse.base_url, target: '_blank') %>
|
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<%- if @topic_view.posts.present? %>
|
<%- if @topic_view.posts.present? %>
|
||||||
|
@ -38,7 +35,7 @@
|
||||||
</article>
|
</article>
|
||||||
<%- end %>
|
<%- end %>
|
||||||
|
|
||||||
<%- if @topic_view.topic.posts_count > 4 %>
|
<% if @topic_view.topic.posts_count > 0 %>
|
||||||
<footer>
|
<footer>
|
||||||
<%= link_to(I18n.t('embed.continue'), @topic_view.posts.last.url, class: 'button', target: '_blank') %>
|
<%= link_to(I18n.t('embed.continue'), @topic_view.posts.last.url, class: 'button', target: '_blank') %>
|
||||||
<%- if @posts_left > 0 %>
|
<%- if @posts_left > 0 %>
|
||||||
|
|
Loading…
Reference in New Issue