2016-04-10 22:13:01 +02:00
|
|
|
<div class='user-list'>
|
|
|
|
<ul><!--
|
2017-02-09 00:48:06 +01:00
|
|
|
--><% for (let user of ctx.response.results) { %><!--
|
2016-04-10 22:13:01 +02:00
|
|
|
--><li>
|
|
|
|
<div class='wrapper'>
|
2016-06-11 09:59:29 +02:00
|
|
|
<% if (ctx.canViewUsers) { %>
|
2017-01-20 21:51:04 +01:00
|
|
|
<a class='image' href='<%- ctx.formatClientLink('user', user.name) %>'>
|
2016-06-11 09:59:29 +02:00
|
|
|
<% } %>
|
|
|
|
<%= ctx.makeThumbnail(user.avatarUrl) %>
|
|
|
|
<% if (ctx.canViewUsers) { %>
|
|
|
|
</a>
|
|
|
|
<% } %>
|
2016-04-10 22:13:01 +02:00
|
|
|
<div class='details'>
|
2016-06-11 09:59:29 +02:00
|
|
|
<% if (ctx.canViewUsers) { %>
|
2017-01-20 21:51:04 +01:00
|
|
|
<a href='<%- ctx.formatClientLink('user', user.name) %>'>
|
2016-06-11 09:59:29 +02:00
|
|
|
<% } %>
|
2016-06-23 11:41:52 +02:00
|
|
|
<%- user.name %>
|
2016-06-11 09:59:29 +02:00
|
|
|
<% if (ctx.canViewUsers) { %>
|
|
|
|
</a>
|
|
|
|
<% } %>
|
|
|
|
<br/>
|
2016-05-21 09:45:43 +02:00
|
|
|
Registered: <%= ctx.makeRelativeTime(user.creationTime) %><br/>
|
|
|
|
Last seen: <%= ctx.makeRelativeTime(user.lastLoginTime) %>
|
2016-04-10 22:13:01 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</li><!--
|
2016-06-11 09:59:06 +02:00
|
|
|
--><% } %><!--
|
2016-05-21 09:45:43 +02:00
|
|
|
--><%= ctx.makeFlexboxAlign() %><!--
|
2016-04-10 22:13:01 +02:00
|
|
|
--></ul>
|
|
|
|
</div>
|