mirror of
https://github.com/discourse/discourse.git
synced 2025-01-19 07:12:45 +08:00
FIX: Don't show trust level if the API didn't return it
This commit is contained in:
parent
7a093ea5d6
commit
e8d5d34755
|
@ -140,7 +140,10 @@
|
|||
{{#if model.invited_by}}
|
||||
<dt class="invited-by">{{i18n 'user.invited_by'}}</dt><dd class="invited-by">{{#link-to 'user' model.invited_by}}{{model.invited_by.username}}{{/link-to}}</dd>
|
||||
{{/if}}
|
||||
<dt class="trust-level">{{i18n 'user.trust_level'}}</dt><dd class="trust-level">{{model.trustLevel.name}}</dd>
|
||||
{{log model.trust_level}}
|
||||
{{#if model.trust_level}}
|
||||
<dt class="trust-level">{{i18n 'user.trust_level'}}</dt><dd class="trust-level">{{model.trustLevel.name}}</dd>
|
||||
{{/if}}
|
||||
{{#if canCheckEmails}}
|
||||
<dt>{{i18n 'user.email.title'}}</dt>
|
||||
<dd title={{model.email}}>
|
||||
|
|
Loading…
Reference in New Issue
Block a user