mirror of
https://github.com/discourse/discourse.git
synced 2025-06-24 01:28:08 +08:00
Includes post count in filter message by user
This commit is contained in:
@ -169,7 +169,10 @@ Discourse.TopicController = Discourse.ObjectController.extend({
|
|||||||
posts_count: this.get('posts_count')
|
posts_count: this.get('posts_count')
|
||||||
}));
|
}));
|
||||||
} else if (postFilters.userFilters.length > 0) {
|
} else if (postFilters.userFilters.length > 0) {
|
||||||
this.set('filterDesc', Em.String.i18n("topic.filters.user", {count: postFilters.userFilters.length}));
|
this.set('filterDesc', Em.String.i18n("topic.filters.user", {
|
||||||
|
filtered_posts_count: this.get('filtered_posts_count'),
|
||||||
|
count: postFilters.userFilters.length
|
||||||
|
}));
|
||||||
} else {
|
} else {
|
||||||
// Hide the bottom bar
|
// Hide the bottom bar
|
||||||
$('#topic-filter').slideUp();
|
$('#topic-filter').slideUp();
|
||||||
|
@ -503,8 +503,8 @@ en:
|
|||||||
|
|
||||||
filters:
|
filters:
|
||||||
user:
|
user:
|
||||||
one: "You're viewing only posts by a specific user."
|
one: "You're viewing only {{filtered_posts_count}} posts by a specific user."
|
||||||
other: "You're viewing only posts made by specific users."
|
other: "You're viewing only {{filtered_posts_count}} posts made by {{count}} specific users."
|
||||||
best_of: "You're viewing the {{filtered_posts_count}} best posts of {{posts_count}} in the topic."
|
best_of: "You're viewing the {{filtered_posts_count}} best posts of {{posts_count}} in the topic."
|
||||||
cancel: "Show all posts in this topic again."
|
cancel: "Show all posts in this topic again."
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user