mirror of
https://github.com/discourse/discourse.git
synced 2025-02-12 06:14:54 +00:00
* FEATURE: add penalty history when silencing a user Display penalty history (last 6 months) when silencing/suspending a user * FEATURE: allow default penalty values to be chosen Adds a site setting that designates default penalty values in hours. Silence/suspend modals will auto-fill in the default values, but otherwise will still allow moderators to pick and overwrite values as normal. First silence/suspend: first value Second silence/suspend: second value etc. Penalty counts are forgiven at the same rate as tl3 promotion requirements do. Co-authored-by: jjaffeux <j.jaffeux@gmail.com>
9 lines
414 B
Handlebars
9 lines
414 B
Handlebars
<div class="suspended-count {{suspendedCountClass}}" title={{i18n "admin.user.last_six_months"}}>
|
|
<label>{{i18n "admin.user.suspended_count"}}</label>
|
|
<span>{{user.penalty_counts.suspended}}</span>
|
|
</div>
|
|
<div class="silenced-count {{silencedCountClass}}" title={{i18n "admin.user.last_six_months"}}>
|
|
<label>{{i18n "admin.user.silenced_count"}}</label>
|
|
<span>{{user.penalty_counts.silenced}}</span>
|
|
</div>
|