b7456463eb
Rather than having "creation time", "upload time", "registration time" etc. I think it is better to have a single "creation time" entity-agnostic property (like the one Tags had thus far).
29 lines
994 B
Smarty
29 lines
994 B
Smarty
<div class="user">
|
|
<div class="avatar">
|
|
<% if (canViewUsers) { %>
|
|
<a href="#/user/<%= user.name %>">
|
|
<% } %>
|
|
<img width="80" height="80" src="/data/thumbnails/80x80/avatars/<%= user.name %>" alt="<%= user.name %>"/>
|
|
<% if (canViewUsers) { %>
|
|
</a>
|
|
<% } %>
|
|
</div>
|
|
|
|
<div class="details">
|
|
<h1>
|
|
<% if (canViewUsers) { %>
|
|
<a href="#/user/<%= user.name %>">
|
|
<%= user.name %>
|
|
</a>
|
|
<% } else { %>
|
|
<%= user.name %>
|
|
<% } %>
|
|
</h1>
|
|
<div class="date-joined" title="<%= util.formatAbsoluteTime(user.creationTime) %>">
|
|
Joined: <%= util.formatRelativeTime(user.creationTime) %>
|
|
</div>
|
|
<div class="date-seen" title="<%= util.formatAbsoluteTime(user.lastLoginTime) %>">
|
|
Last seen: <%= util.formatRelativeTime(user.lastLoginTime) %>
|
|
</div>
|
|
</div>
|
|
</div>
|