mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-26 20:34:02 +03:00
d90ed28940
closes TryGhost/Ghost#6985 - renames all date properties to end with `UTC`: - `publishedAt` in `post` model - `createdAt` in `post`, `role`, `subscriber`, `tag` and `user` model - `updatedAt` in `post`, `role`, `subscriber`, `tag` and `user` model - `unsubscribedAt` in `subscriber` model - `lastLogin` in `user` model - adds `attrs` transforms in matching serializers `post`, `tag` and `user` - new serializers files for `subscribers` and `role` to add `attr` transforms - adds unit tests for all serializers - use two variables in `post-settings-menu` controller to handle blog-timezone adjusted date as well as UTC date
19 lines
562 B
Handlebars
19 lines
562 B
Handlebars
<span class="user-list-item-figure" style={{component.userImageBackground}}>
|
|
<span class="hidden">Photo of {{user.name}}</span>
|
|
</span>
|
|
|
|
<div class="user-list-item-body">
|
|
<span class="name">
|
|
{{user.name}}
|
|
</span>
|
|
<br>
|
|
<span class="description">Last seen: {{component.lastLoginUTC}}</span>
|
|
</div>
|
|
<aside class="user-list-item-aside">
|
|
{{#unless session.user.isAuthor}}
|
|
{{#each user.roles as |role|}}
|
|
<span class="role-label {{role.lowerCaseName}}">{{role.name}}</span>
|
|
{{/each}}
|
|
{{/unless}}
|
|
</aside>
|