show a dot and reply count for new topics on mobile

This commit is contained in:
Neil Lalonde 2015-09-14 18:56:32 -04:00
parent 8bcb22f52d
commit 3ebad3e294
3 changed files with 6 additions and 2 deletions

View File

@ -1,5 +1,8 @@
{{#if view.showBadges}}
{{raw "topic-post-badges" unread=topic.unread newPosts=topic.displayNewPosts unseen=topic.unseen url=topic.lastUnreadUrl}}
{{else}}
{{#if topic.unseen}}
<span class="badge-notification new-topic"></span>
{{/if}}
{{raw "list/posts-count-column" topic=topic tagName="div"}}
{{/if}}

View File

@ -1,4 +1,4 @@
export default Ember.Object.extend({
postCountsPresent: Ember.computed.or('topic.unread', 'topic.displayNewPosts', 'topic.unseen'),
postCountsPresent: Ember.computed.or('topic.unread', 'topic.displayNewPosts'),
showBadges: Ember.computed.and('postBadgesEnabled', 'postCountsPresent')
});

View File

@ -85,11 +85,11 @@
i {color: $secondary;}
&.new-topic::before {
content: none;
margin-right: 0;
}
&.new-topic {
padding-right: 0;
top: -3px;
}
}
@ -392,6 +392,7 @@ td .main-link {
}
.topic-list {
.posts-map {
display: inline;
font-size: 1.071em;
padding-top: 2px;
}