szurubooru/client/html/users_page.tpl
rr- 1acceb941d client: refactor linking and routing
Print all links through new uri.js component
Refactor the router to use more predictable parsing
Fix linking to entities with weird names (that contain slashes, + etc.)
2017-01-21 00:13:35 +01:00

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='<%- ctx.formatClientLink('user', user.name) %>'>
<% } %>
<%= ctx.makeThumbnail(user.avatarUrl) %>
<% if (ctx.canViewUsers) { %>
</a>
<% } %>
<div class='details'>
<% if (ctx.canViewUsers) { %>
<a href='<%- ctx.formatClientLink('user', 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>