2023-01-17 17:01:53 +03:00
|
|
|
<div class="apps-grid-cell tooltip-centered {{if (and this.user.isAdmin this.session.user.isEditor) 'user-list-item-no-interaction'}}" data-tooltip="{{ if this.user.isLocked 'Requires password reset to log in'}}">
|
|
|
|
<LinkTo @route="settings.staff.user" @model={{this.user.slug}} @disabled={{and this.user.isAdmin this.session.user.isEditor}} data-test-user-id={{this.user.id}}>
|
2017-02-16 20:12:13 +03:00
|
|
|
<article class="apps-card-app">
|
|
|
|
<div class="apps-card-left">
|
2022-02-02 20:09:02 +03:00
|
|
|
<span class="user-list-item-figure" style={{background-image-style this.user.profileImageUrl}}>
|
|
|
|
<span class="hidden">Photo of {{this.user.name}}</span>
|
2017-02-16 20:12:13 +03:00
|
|
|
</span>
|
|
|
|
<div class="apps-card-meta">
|
2022-02-02 20:09:02 +03:00
|
|
|
<h3 class="apps-card-app-title">{{this.user.name}}</h3>
|
|
|
|
<p class="apps-card-app-desc">Last seen: {{this.component.lastLoginUTC}}</p>
|
2017-02-16 20:12:13 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="apps-card-right">
|
2022-02-02 20:09:02 +03:00
|
|
|
{{#if this.user.isLocked}}
|
2021-01-07 19:11:49 +03:00
|
|
|
<span class="gh-badge locked">{{svg-jar "lock"}}</span>
|
|
|
|
{{/if}}
|
2017-02-16 20:12:13 +03:00
|
|
|
<div class="apps-configured">
|
2022-02-02 20:09:02 +03:00
|
|
|
{{#if this.user.isSuspended}}
|
2020-09-03 14:28:43 +03:00
|
|
|
<span class="gh-badge suspended">Suspended</span>
|
2020-03-05 14:12:09 +03:00
|
|
|
{{else}}
|
|
|
|
{{#unless this.session.user.isAuthorOrContributor}}
|
2022-02-02 20:09:02 +03:00
|
|
|
{{#each this.user.roles as |role|}}
|
2020-03-05 14:12:09 +03:00
|
|
|
<span class="gh-badge {{role.lowerCaseName}}" data-test-role-name>{{role.name}}</span>
|
|
|
|
{{/each}}
|
|
|
|
{{/unless}}
|
2017-07-22 00:21:27 +03:00
|
|
|
{{/if}}
|
2021-01-07 19:11:49 +03:00
|
|
|
{{svg-jar "arrow-right" class="gh-user-arrow-icon"}}
|
2017-02-16 20:12:13 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</article>
|
2020-01-16 18:14:03 +03:00
|
|
|
</LinkTo>
|
2015-06-30 16:21:03 +03:00
|
|
|
</div>
|