mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
clean up the topics footer so it does not flash and is localisable
This commit is contained in:
@@ -39,6 +39,7 @@ Discourse.ListController = Ember.Controller.extend Discourse.Presence,
|
||||
Discourse.TopicList.list(current).then (items) =>
|
||||
@set('filterSummary', items.filter_summary)
|
||||
@set('filterMode', filterMode)
|
||||
@set('allLoaded', true) unless items.more_topics_url
|
||||
@set('loading', false)
|
||||
deferred.resolve(items)
|
||||
|
||||
|
||||
@@ -5,6 +5,9 @@ window.Discourse.FilteredListRoute = Discourse.Route.extend
|
||||
listController = @controllerFor('list')
|
||||
listController.set('canCreateTopic', false)
|
||||
listController.set('filterMode', '')
|
||||
listController.set('allLoaded', false)
|
||||
|
||||
|
||||
renderTemplate: ->
|
||||
@render 'listTopics', into: 'list', outlet: 'listView', controller: 'listTopics'
|
||||
setupController: ->
|
||||
|
||||
@@ -35,8 +35,10 @@
|
||||
{{/if}}
|
||||
|
||||
{{outlet listView}}
|
||||
|
||||
<h3>No more topics in this category. <a href="/categories">Browse all categories</a> or <a href="/">view popular topics</a></h3>
|
||||
|
||||
{{#if controller.allLoaded}}
|
||||
{{{i18n topics.footer}}}
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user