mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 02:23:40 +08:00
702f7a5a67
Prior to this fix, weekly could be 8 days and we could have differences between period chooser text and actual results in the chart. A good followup to this PR would be to add custom date ranges in period-chooser component.
46 lines
1.2 KiB
Handlebars
46 lines
1.2 KiB
Handlebars
<div class="sections">
|
|
{{plugin-outlet name="admin-dashboard-moderation-top"}}
|
|
|
|
{{#if 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>
|
|
{{period-chooser
|
|
period=period
|
|
action=(action "changePeriod")
|
|
content=availablePeriods
|
|
fullDay=false}}
|
|
</div>
|
|
|
|
<div class="section-body">
|
|
{{admin-report
|
|
filters=filters
|
|
showHeader=false
|
|
dataSourceName="moderators_activity"}}
|
|
</div>
|
|
</div>
|
|
{{/if}}
|
|
|
|
<div class="main-section">
|
|
{{admin-report
|
|
dataSourceName="flags_status"
|
|
reportOptions=flagsStatusOptions
|
|
filters=lastWeekfilters}}
|
|
|
|
{{admin-report
|
|
dataSourceName="post_edits"
|
|
filters=lastWeekfilters}}
|
|
|
|
{{admin-report
|
|
dataSourceName="user_flagging_ratio"
|
|
filters=lastWeekfilters
|
|
reportOptions=userFlaggingRatioOptions}}
|
|
|
|
{{plugin-outlet name="admin-dashboard-moderation-bottom"}}
|
|
</div>
|
|
</div>
|