mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 00:35:31 +08:00
26b5c0472f
The `tagName` argument is now deprecated. This commit uses a codemod (https://github.com/discourse/discourse-ember-codemods/tree/main/transforms/extract-plugin-outlet-tagname) to automatically remove the `@tagName` from all PluginOutlet invocations, and create a matching wrapper element so that the HTML structure is unchanged. We may want to remove some/all of these wrappers entirely in future, but that would be a riskier change which we should tackle on a case-by-case basis.
61 lines
1.5 KiB
Handlebars
61 lines
1.5 KiB
Handlebars
<div class="sections">
|
|
<span>
|
|
<PluginOutlet
|
|
@name="admin-dashboard-moderation-top"
|
|
@connectorTagName="div"
|
|
/>
|
|
</span>
|
|
|
|
{{#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}}
|
|
/>
|
|
|
|
<span>
|
|
<PluginOutlet
|
|
@name="admin-dashboard-moderation-bottom"
|
|
@connectorTagName="div"
|
|
@args={{hash filters=this.lastWeekfilters}}
|
|
/>
|
|
</span>
|
|
</div>
|
|
</div> |