From 0f49224a60688a54ed0c604870cf57d3a19f9a18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Hanol?= Date: Mon, 28 Sep 2015 12:03:37 +0200 Subject: [PATCH] FIX: don't show the 'new topics' banner in Top --- .../discourse/templates/discovery/topics.hbs | 15 ++++++++------- .../templates/mobile/discovery/topics.hbs | 14 +++++++------- 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/app/assets/javascripts/discourse/templates/discovery/topics.hbs b/app/assets/javascripts/discourse/templates/discovery/topics.hbs index 9ed3a83d177..b57679afc79 100644 --- a/app/assets/javascripts/discourse/templates/discovery/topics.hbs +++ b/app/assets/javascripts/discourse/templates/discovery/topics.hbs @@ -21,14 +21,15 @@
{{period-chooser period=period action="changePeriod"}}
- {{/if}} - {{#if topicTrackingState.hasIncoming}} -
-
- {{count-i18n key="topic_count_" suffix=topicTrackingState.filter count=topicTrackingState.incomingCount}} - {{i18n 'click_to_show'}} + {{else}} + {{#if topicTrackingState.hasIncoming}} +
+
+ {{count-i18n key="topic_count_" suffix=topicTrackingState.filter count=topicTrackingState.incomingCount}} + {{i18n 'click_to_show'}} +
-
+ {{/if}} {{/if}} {{#if hasTopics}} diff --git a/app/assets/javascripts/discourse/templates/mobile/discovery/topics.hbs b/app/assets/javascripts/discourse/templates/mobile/discovery/topics.hbs index 22cbceea9cd..ae964b46e39 100644 --- a/app/assets/javascripts/discourse/templates/mobile/discovery/topics.hbs +++ b/app/assets/javascripts/discourse/templates/mobile/discovery/topics.hbs @@ -3,13 +3,13 @@
{{period-chooser period=period action="changePeriod"}}
- {{/if}} - - {{#if topicTrackingState.hasIncoming}} -
- {{count-i18n key="topic_count_" suffix=topicTrackingState.filter count=topicTrackingState.incomingCount}} - {{i18n 'click_to_show'}} -
+ {{else}} + {{#if topicTrackingState.hasIncoming}} +
+ {{count-i18n key="topic_count_" suffix=topicTrackingState.filter count=topicTrackingState.incomingCount}} + {{i18n 'click_to_show'}} +
+ {{/if}} {{/if}} {{#if hasTopics}}