discourse/app/assets/javascripts/admin/addon/templates/dashboard_moderation.hbs
Selase Krakani 767e8ec730
FIX: Pass period filter to plugin outlet (#19182)
Pass period filter to `admin-dashboard-moderation-bottom` plugin outlet.

This allows plugins to render period filtered moderation data/report
2022-11-24 15:40:02 +00:00

36 lines
1.3 KiB
Handlebars

<div class="sections">
<PluginOutlet @name="admin-dashboard-moderation-top" @tagName="span" @connectorTagName="div" />
{{#if this.isModeratorsActivityVisible}}
<div class="moderators-activity section">
<div class="section-title">
<h2>
<a href={{get-url "/admin/reports/moderators_activity"}}>
{{i18n "admin.dashboard.moderators_activity"}}
</a>
</h2>
<PeriodChooser @period={{this.period}} @action={{action "changePeriod"}} @content={{this.availablePeriods}} @fullDay={{false}} />
</div>
<div class="section-body">
<AdminReport @filters={{this.filters}} @showHeader={{false}} @dataSourceName="moderators_activity" />
</div>
</div>
{{/if}}
<div class="main-section">
<AdminReport @dataSourceName="flags_status" @reportOptions={{this.flagsStatusOptions}} @filters={{this.lastWeekfilters}} />
<AdminReport @dataSourceName="post_edits" @filters={{this.lastWeekfilters}} />
<AdminReport @dataSourceName="user_flagging_ratio" @filters={{this.lastWeekfilters}} @reportOptions={{this.userFlaggingRatioOptions}} />
<PluginOutlet
@name="admin-dashboard-moderation-bottom"
@tagName="span"
@connectorTagName="div"
@args={{hash filters=this.lastWeekfilters}}
/>
</div>
</div>