From 3ebad3e29472abb38844e466a55ef229a0f4a872 Mon Sep 17 00:00:00 2001 From: Neil Lalonde Date: Mon, 14 Sep 2015 18:56:32 -0400 Subject: [PATCH] show a dot and reply count for new topics on mobile --- .../discourse/templates/list/post-count-or-badges.raw.hbs | 3 +++ .../discourse/views/list/post-count-or-badges.js.es6 | 2 +- app/assets/stylesheets/mobile/topic-list.scss | 3 ++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/discourse/templates/list/post-count-or-badges.raw.hbs b/app/assets/javascripts/discourse/templates/list/post-count-or-badges.raw.hbs index 6ac240e7585..88dfe8f000d 100644 --- a/app/assets/javascripts/discourse/templates/list/post-count-or-badges.raw.hbs +++ b/app/assets/javascripts/discourse/templates/list/post-count-or-badges.raw.hbs @@ -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}} + + {{/if}} {{raw "list/posts-count-column" topic=topic tagName="div"}} {{/if}} \ No newline at end of file diff --git a/app/assets/javascripts/discourse/views/list/post-count-or-badges.js.es6 b/app/assets/javascripts/discourse/views/list/post-count-or-badges.js.es6 index 9a8559f1a3b..40faddcde29 100644 --- a/app/assets/javascripts/discourse/views/list/post-count-or-badges.js.es6 +++ b/app/assets/javascripts/discourse/views/list/post-count-or-badges.js.es6 @@ -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') }); diff --git a/app/assets/stylesheets/mobile/topic-list.scss b/app/assets/stylesheets/mobile/topic-list.scss index 1b59b39e7b6..2a96f47b0a5 100644 --- a/app/assets/stylesheets/mobile/topic-list.scss +++ b/app/assets/stylesheets/mobile/topic-list.scss @@ -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; }