mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-24 23:48:13 -05:00
Updated suspended badge for staff list
Displaying the role of suspended staff users is misleading, giving the false impression that those users still have access to the publication. no refs. - updated label to "Suspended" for all suspended staff user
This commit is contained in:
parent
0b5b93376e
commit
7678c410f5
2 changed files with 16 additions and 14 deletions
|
@ -134,13 +134,11 @@
|
|||
.gh-badge.suspended {
|
||||
font-size: 13px;
|
||||
margin-left: 16px;
|
||||
margin-top: 5px;
|
||||
border: color-mod(var(--red) blackness(+8%)) 1px solid;
|
||||
background: linear-gradient(
|
||||
color-mod(var(--red) whiteness(+10%)),
|
||||
color-mod(var(--red) blackness(+4%))
|
||||
);
|
||||
color: var(--white);
|
||||
margin-top: 1px;
|
||||
padding: 6px 8px;
|
||||
border: color-mod(var(--midlightgrey) l(+10%)) 1px solid;
|
||||
background: transparent;
|
||||
color: var(--midgrey);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -12,14 +12,18 @@
|
|||
</div>
|
||||
<div class="apps-card-right">
|
||||
<div class="apps-configured">
|
||||
{{#if user.isLocked}}
|
||||
<span class="gh-badge author">Locked</span>
|
||||
{{#if user.isSuspended}}
|
||||
<span class="gh-badge author">Suspended</span>
|
||||
{{else}}
|
||||
{{#if user.isLocked}}
|
||||
<span class="gh-badge author">Locked</span>
|
||||
{{/if}}
|
||||
{{#unless this.session.user.isAuthorOrContributor}}
|
||||
{{#each user.roles as |role|}}
|
||||
<span class="gh-badge {{role.lowerCaseName}}" data-test-role-name>{{role.name}}</span>
|
||||
{{/each}}
|
||||
{{/unless}}
|
||||
{{/if}}
|
||||
{{#unless this.session.user.isAuthorOrContributor}}
|
||||
{{#each user.roles as |role|}}
|
||||
<span class="gh-badge {{role.lowerCaseName}}" data-test-role-name>{{role.name}}</span>
|
||||
{{/each}}
|
||||
{{/unless}}
|
||||
{{svg-jar "arrow-right"}}
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Reference in a new issue