Ghost/ghost/admin/app/templates/components/gh-user-list-item.hbs
Kevin Ansfield c2557fb2a5 Upgrade to Ember 2.15.0
no issue
- bumped `ember`, `ember-cli`, `ember-data` and related dependencies
- bumped yarn.lock sub-dependencies
- use new public `router` service in place of the private `-routing` service
2017-09-02 16:18:10 -04:00

29 lines
1.1 KiB
Handlebars

<div class="apps-grid-cell">
{{#link-to 'team.user' user.slug data-test-user-id=user.id}}
<article class="apps-card-app">
<div class="apps-card-left">
<span class="user-list-item-figure" style={{component.userImageBackground}}>
<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.isLocked}}
<span class="gh-badge author">Locked</span>
{{/if}}
{{#unless session.user.isAuthor}}
{{#each user.roles as |role|}}
<span class="gh-badge {{role.lowerCaseName}}" data-test-role-name>{{role.name}}</span>
{{/each}}
{{/unless}}
{{inline-svg "arrow-right"}}
</div>
</div>
</article>
{{/link-to}}
</div>