UX: better twitter onebox in embedded comments

This commit is contained in:
Arpit Jalan 2015-08-13 01:11:15 +05:30
parent b1488b430a
commit 56abd247e1
2 changed files with 3 additions and 3 deletions

View File

@ -5,7 +5,7 @@
@import "./common/foundation/colors";
@import "./common/base/onebox";
article {
article.post {
border-bottom: 1px solid #ddd;
&.deleted {
@ -113,7 +113,7 @@ img.emoji {
color: #999;
}
header {
header.discourse {
padding: 10px 10px 20px 10px;
font-size: 1.286em;
border-bottom: 1px solid #ddd;

View File

@ -1,4 +1,4 @@
<header class='embedded'>
<header class='discourse'>
<% 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 %>