UX: Don't show the suspension date if the user is permantently suspended. (#9895)

Use the same pattern used in user.hbs
This commit is contained in:
Roman Rizzi 2020-05-27 14:50:17 -03:00 committed by GitHub
parent 570b12a903
commit 207b72ade1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -125,7 +125,11 @@
<div class="suspended"> <div class="suspended">
<div class="suspension-date"> <div class="suspension-date">
{{d-icon "ban"}} {{d-icon "ban"}}
{{i18n "user.suspended_notice" date=this.user.suspendedTillDate}} {{#if this.user.suspendedForever}}
{{i18n 'user.suspended_permanently'}}
{{else}}
{{i18n 'user.suspended_notice' date=this.user.suspendedTillDate}}
{{/if}}
</div> </div>
<div class="suspension-reason"> <div class="suspension-reason">
<span class="suspension-reason-title">{{i18n "user.suspended_reason"}}</span> <span class="suspension-reason-title">{{i18n "user.suspended_reason"}}</span>