szurubooru/public_html/templates/home.tpl
Marcin Kurczewski 4c458d8b20 Fixed privileges
2014-10-18 18:48:31 +02:00

52 lines
1 KiB
Smarty

<div id="home">
<h1><%= title %></h1>
<p>
<small>Serving <%= globals.postCount %> posts (<%= formatFileSize(globals.postSize) %>)</small>
</p>
<% if (post) { %>
<div class="post">
<%= postContentTemplate({post: post}) %>
<div class="post-footer">
<span class="left">
<% var showLink = canViewPosts %>
<% if (showLink) { %>
<a href="#/post/<%= post.id %>">
<% } %>
<%= post.idMarkdown %>
<% if (showLink) { %>
</a>
<% } %>
uploaded
<%= formatRelativeTime(post.uploadTime) %>
</span>
<span class="right">
featured by
<% var showLink = canViewUsers && post.user.name %>
<% if (showLink) { %>
<a href="#/user/<%= post.user.name %>">
<% } %>
<img class="author-avatar"
src="/data/thumbnails/25x25/avatars/<%= post.user.name || '!' %>"
alt="<%= post.user.name || 'Anonymous user' %>"/>
<%= post.user.name || 'Anonymous user' %>
<% if (showLink) { %>
</a>
<% } %>
</span>
</div>
</div>
<% } %>
</div>