2016-04-06 22:34:21 +02:00
|
|
|
<div id='user-summary'>
|
2016-05-21 09:45:43 +02:00
|
|
|
<%= ctx.makeThumbnail(ctx.user.avatarUrl) %>
|
2016-04-06 22:34:21 +02:00
|
|
|
<ul class='basic-info'>
|
2016-05-21 09:45:43 +02:00
|
|
|
<li>Registered: <%= ctx.makeRelativeTime(ctx.user.creationTime) %></li>
|
|
|
|
<li>Last seen: <%= ctx.makeRelativeTime(ctx.user.lastLoginTime) %></li>
|
2016-06-23 11:41:52 +02:00
|
|
|
<li>Rank: <%- ctx.user.rankName.toLowerCase() %></li>
|
2016-04-06 22:34:21 +02:00
|
|
|
</ul>
|
|
|
|
|
|
|
|
<div>
|
2016-06-05 21:46:57 +02:00
|
|
|
<nav>
|
2016-04-06 22:34:21 +02:00
|
|
|
<p><strong>Quick links</strong></p>
|
|
|
|
<ul>
|
2017-01-20 21:51:04 +01:00
|
|
|
<li><a href='<%- ctx.formatClientLink('posts', {query: 'submit:' + ctx.user.name}) %>'><%- ctx.user.uploadedPostCount %> uploads</a></li>
|
|
|
|
<li><a href='<%- ctx.formatClientLink('posts', {query: 'fav:' + ctx.user.name}) %>'><%- ctx.user.favoritePostCount %> favorites</a></li>
|
|
|
|
<li><a href='<%- ctx.formatClientLink('posts', {query: 'comment:' + ctx.user.name}) %>'><%- ctx.user.commentCount %> comments</a></li>
|
2016-04-06 22:34:21 +02:00
|
|
|
</ul>
|
|
|
|
</nav>
|
|
|
|
|
2016-05-21 09:45:43 +02:00
|
|
|
<% if (ctx.isLoggedIn) { %>
|
2016-06-05 21:46:57 +02:00
|
|
|
<nav>
|
2016-04-06 22:34:21 +02:00
|
|
|
<p><strong>Only visible to you</strong></p>
|
|
|
|
<ul>
|
2017-01-20 21:51:04 +01:00
|
|
|
<li><a href='<%- ctx.formatClientLink('posts', {query: 'special:liked'}) %>'><%- ctx.user.likedPostCount %> liked posts</a></li>
|
|
|
|
<li><a href='<%- ctx.formatClientLink('posts', {query: 'special:disliked'}) %>'><%- ctx.user.dislikedPostCount %> disliked posts</a></li>
|
2016-04-06 22:34:21 +02:00
|
|
|
</ul>
|
|
|
|
</nav>
|
2016-05-09 20:07:54 +02:00
|
|
|
<% } %>
|
2016-04-06 22:34:21 +02:00
|
|
|
</div>
|
|
|
|
</div>
|