Ghost/ghost/admin/app/components/gh-user-list-item.hbs

33 lines
1.4 KiB
Handlebars
Raw Normal View History

2017-02-16 20:12:13 +03:00
<div class="apps-grid-cell">
<LinkTo @route="staff.user" @model={{user.slug}} data-test-user-id={{user.id}}>
2017-02-16 20:12:13 +03:00
<article class="apps-card-app">
<div class="apps-card-left">
<span class="user-list-item-figure" style={{background-image-style user.profileImageUrl}}>
2017-02-16 20:12:13 +03:00
<span class="hidden">Photo of {{user.name}}</span>
</span>
<div class="apps-card-meta">
<h3 class="apps-card-app-title">{{user.name}}</h3>
<p class="apps-card-app-desc">Last seen: {{component.lastLoginUTC}}</p>
</div>
</div>
<div class="apps-card-right">
<div class="apps-configured">
{{#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}}
{{svg-jar "arrow-right"}}
2017-02-16 20:12:13 +03:00
</div>
</div>
</article>
</LinkTo>
</div>