szurubooru/client/html/users_page.tpl

31 lines
1.2 KiB
Smarty
Raw Normal View History

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) { %>
<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) { %>
<a href='<%- ctx.formatClientLink('user', user.name) %>'>
2016-06-11 09:59:29 +02:00
<% } %>
<%- user.name %>
2016-06-11 09:59:29 +02:00
<% if (ctx.canViewUsers) { %>
</a>
<% } %>
<br/>
Registered: <%= ctx.makeRelativeTime(user.creationTime) %><br/>
Last seen: <%= ctx.makeRelativeTime(user.lastLoginTime) %>
2016-04-10 22:13:01 +02:00
</div>
</div>
</li><!--
--><% } %><!--
--><%= ctx.makeFlexboxAlign() %><!--
2016-04-10 22:13:01 +02:00
--></ul>
</div>