diff --git a/app/assets/javascripts/discourse/controllers/topic_controller.js b/app/assets/javascripts/discourse/controllers/topic_controller.js index 56b0a663fc..5fffb498a4 100644 --- a/app/assets/javascripts/discourse/controllers/topic_controller.js +++ b/app/assets/javascripts/discourse/controllers/topic_controller.js @@ -293,6 +293,14 @@ Discourse.TopicController = Discourse.ObjectController.extend(Discourse.Selected return false; }.property('postStream.loaded', 'currentPost', 'postStream.filteredPostsCount'), + hugeNumberOfPosts: function() { + return (this.get('postStream.filteredPostsCount') >= 1000); + }.property('postStream.filteredPostsCount'), + + progressPositionTitle: function() { + return I18n.t("topic.progress.position", {current: this.get('progressPosition'), total: this.get('highest_post_number')}); + }.property('progressPosition', 'highest_post_number'), + deselectPost: function(post) { this.get('selectedPosts').removeObject(post); diff --git a/app/assets/javascripts/discourse/templates/topic.js.handlebars b/app/assets/javascripts/discourse/templates/topic.js.handlebars index b785637b65..8f4627b625 100644 --- a/app/assets/javascripts/discourse/templates/topic.js.handlebars +++ b/app/assets/javascripts/discourse/templates/topic.js.handlebars @@ -51,8 +51,8 @@