diff --git a/app/assets/javascripts/admin/templates/flags-topics-index.hbs b/app/assets/javascripts/admin/templates/flags-topics-index.hbs index b5a7eca133e..5ece61b6b72 100644 --- a/app/assets/javascripts/admin/templates/flags-topics-index.hbs +++ b/app/assets/javascripts/admin/templates/flags-topics-index.hbs @@ -1,46 +1,50 @@ {{plugin-outlet name="flagged-topics-before" noTags=true args=(hash flaggedTopics=flaggedTopics)}} - - - {{plugin-outlet name="flagged-topic-header-row" noTags=true}} - - - - - - +{{#if flaggedTopics}} +
{{i18n "admin.flags.flagged_topics.topic"}} {{i18n "admin.flags.flagged_topics.type"}}{{I18n "admin.flags.flagged_topics.users"}}{{i18n "admin.flags.flagged_topics.last_flagged"}}
+ + {{plugin-outlet name="flagged-topic-header-row" noTags=true}} + + + + + + - {{#each flaggedTopics as |ft|}} - - {{plugin-outlet name="flagged-topic-row" noTags=true args=(hash topic=ft.topic)}} + {{#each flaggedTopics as |ft|}} + + {{plugin-outlet name="flagged-topic-row" noTags=true args=(hash topic=ft.topic)}} - - - - - - - {{/each}} -
{{i18n "admin.flags.flagged_topics.topic"}} {{i18n "admin.flags.flagged_topics.type"}}{{I18n "admin.flags.flagged_topics.users"}}{{i18n "admin.flags.flagged_topics.last_flagged"}}
- {{replace-emoji ft.topic.fancy_title}} - - {{#each ft.flag_counts as |fc|}} -
- {{post-action-title fc.post_action_type_id fc.name_key}} - x{{fc.count}} -
- {{/each}} -
- {{flagged-topic-users users=ft.users tagName=""}} - - {{format-age ft.last_flag_at}} - - {{#link-to - "adminFlags.topics.show" - ft.id - class="btn d-button no-text btn-small btn-primary show-details" - title=(i18n "admin.flags.show_details")}} - {{d-icon "list"}} - {{i18n "admin.flags.details"}} - {{/link-to}} -
+ + {{replace-emoji ft.topic.fancy_title}} + + + {{#each ft.flag_counts as |fc|}} +
+ {{post-action-title fc.post_action_type_id fc.name_key}} + x{{fc.count}} +
+ {{/each}} + + + {{flagged-topic-users users=ft.users tagName=""}} + + + {{format-age ft.last_flag_at}} + + + {{#link-to + "adminFlags.topics.show" + ft.id + class="btn d-button no-text btn-small btn-primary show-details" + title=(i18n "admin.flags.show_details")}} + {{d-icon "list"}} + {{i18n "admin.flags.details"}} + {{/link-to}} + + + {{/each}} + +{{else}} + {{i18n "admin.flags.flagged_topics.no_results"}} +{{/if}} diff --git a/config/locales/client.en.yml b/config/locales/client.en.yml index 3b3cc7d890b..048a7368830 100644 --- a/config/locales/client.en.yml +++ b/config/locales/client.en.yml @@ -2837,6 +2837,7 @@ en: type: "Type" users: "Users" last_flagged: "Last Flagged" + no_results: "There are no flagged topics." short_names: off_topic: "off-topic"