diff --git a/app/assets/javascripts/discourse/models/topic_list.js b/app/assets/javascripts/discourse/models/topic_list.js index 8bc5428d774..7c8b2e07f37 100644 --- a/app/assets/javascripts/discourse/models/topic_list.js +++ b/app/assets/javascripts/discourse/models/topic_list.js @@ -32,7 +32,6 @@ function finderFor(filter, params) { } Discourse.TopicList = Discourse.Model.extend({ - forEachNew: function(topics, callback) { var topicIds = []; _.each(this.get('topics'),function(topic) { diff --git a/app/assets/javascripts/discourse/templates/discovery/topics.js.handlebars b/app/assets/javascripts/discourse/templates/discovery/topics.js.handlebars index c3ad6b835e7..57fcf87e726 100644 --- a/app/assets/javascripts/discourse/templates/discovery/topics.js.handlebars +++ b/app/assets/javascripts/discourse/templates/discovery/topics.js.handlebars @@ -57,9 +57,8 @@ {{#if allLoaded}}

{{#if latest}} - {{#if can_create_topic}} - {{footerMessage}}{{i18n topic.suggest_create_topic}} - {{/if}} + {{footerMessage}} + {{#if can_create_topic}}{{i18n topic.suggest_create_topic}}{{/if}} {{else}} {{#if top}} {{#link-to "discovery.categories"}}{{i18n topic.browse_all_categories}}{{/link-to}}, {{#link-to 'discovery.latest'}}{{i18n topic.view_latest_topics}}{{/link-to}} {{i18n or}} {{i18n filters.top.other_periods}} diff --git a/app/assets/javascripts/discourse/templates/mobile/list/categories.js.handlebars b/app/assets/javascripts/discourse/templates/mobile/discovery/categories.js.handlebars similarity index 100% rename from app/assets/javascripts/discourse/templates/mobile/list/categories.js.handlebars rename to app/assets/javascripts/discourse/templates/mobile/discovery/categories.js.handlebars diff --git a/app/assets/javascripts/discourse/templates/mobile/discovery/topics.js.handlebars b/app/assets/javascripts/discourse/templates/mobile/discovery/topics.js.handlebars new file mode 100644 index 00000000000..4f218820df4 --- /dev/null +++ b/app/assets/javascripts/discourse/templates/mobile/discovery/topics.js.handlebars @@ -0,0 +1,43 @@ +
+ {{#if showTable}} + + {{#if topicTrackingState.hasIncoming}} + + + + + + {{/if}} + {{collection contentBinding="topics" tagName="tbody" itemViewClass="Discourse.TopicListItemView"}} +
+
+ {{countI18n new_topics_inserted countBinding="topicTrackingState.incomingCount"}} + {{i18n show_new_topics}} +
+
+ {{/if}} +
+ + diff --git a/app/assets/javascripts/discourse/templates/mobile/list/topics.js.handlebars b/app/assets/javascripts/discourse/templates/mobile/list/topics.js.handlebars deleted file mode 100644 index 070f9c25bd7..00000000000 --- a/app/assets/javascripts/discourse/templates/mobile/list/topics.js.handlebars +++ /dev/null @@ -1,46 +0,0 @@ -{{#unless loading}} - {{#if loaded}} -
- {{#if view.showTable}} - - - {{#if view.topicTrackingState.hasIncoming}} - - - - - - {{/if}} - - {{collection contentBinding="topics" tagName="tbody" itemViewClass="Discourse.TopicListItemView"}} - -
-
- {{countI18n new_topics_inserted countBinding="view.topicTrackingState.incomingCount"}} - {{i18n show_new_topics}} -
-
- {{/if}} -
- - - - {{/if}} -{{/unless}} diff --git a/app/assets/stylesheets/mobile/topic-list.scss b/app/assets/stylesheets/mobile/topic-list.scss index 7ee17f0d307..d6ab8e36e5f 100644 --- a/app/assets/stylesheets/mobile/topic-list.scss +++ b/app/assets/stylesheets/mobile/topic-list.scss @@ -108,6 +108,7 @@ font-size: 14px; margin-top: 8px; color: $dark_gray; + word-break: break-word; } .topic-statuses:empty {