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 {
|
.gh-badge.suspended {
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
margin-left: 16px;
|
margin-left: 16px;
|
||||||
margin-top: 5px;
|
margin-top: 1px;
|
||||||
border: color-mod(var(--red) blackness(+8%)) 1px solid;
|
padding: 6px 8px;
|
||||||
background: linear-gradient(
|
border: color-mod(var(--midlightgrey) l(+10%)) 1px solid;
|
||||||
color-mod(var(--red) whiteness(+10%)),
|
background: transparent;
|
||||||
color-mod(var(--red) blackness(+4%))
|
color: var(--midgrey);
|
||||||
);
|
|
||||||
color: var(--white);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -12,14 +12,18 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="apps-card-right">
|
<div class="apps-card-right">
|
||||||
<div class="apps-configured">
|
<div class="apps-configured">
|
||||||
{{#if user.isLocked}}
|
{{#if user.isSuspended}}
|
||||||
<span class="gh-badge author">Locked</span>
|
<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}}
|
{{/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"}}
|
{{svg-jar "arrow-right"}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Reference in a new issue