szurubooru/client/html/users_page.tpl

30 lines
1.2 KiB
Smarty

<div class='user-list'>
<ul><!--
--><% for (let user of ctx.results) { %><!--
--><li>
<div class='wrapper'>
<% if (ctx.canViewUsers) { %>
<a class='image' href='/user/<%- encodeURIComponent(user.name) %>'>
<% } %>
<%= ctx.makeThumbnail(user.avatarUrl) %>
<% if (ctx.canViewUsers) { %>
</a>
<% } %>
<div class='details'>
<% if (ctx.canViewUsers) { %>
<a href='/user/<%- encodeURIComponent(user.name) %>'>
<% } %>
<%- user.name %>
<% if (ctx.canViewUsers) { %>
</a>
<% } %>
<br/>
Registered: <%= ctx.makeRelativeTime(user.creationTime) %><br/>
Last seen: <%= ctx.makeRelativeTime(user.lastLoginTime) %>
</div>
</div>
</li><!--
--><% } %><!--
--><%= ctx.makeFlexboxAlign() %><!--
--></ul>
</div>