2014-09-24 23:24:51 +02:00
|
|
|
<div id="home">
|
|
|
|
<h1><%= title %></h1>
|
2014-09-25 11:45:46 +02:00
|
|
|
<p>
|
2014-10-10 18:13:46 +02:00
|
|
|
<small>Serving <%= globals.postCount || 0 %> posts (<%= formatFileSize(globals.postSize || 0) %>)</small>
|
2014-09-25 11:45:46 +02:00
|
|
|
</p>
|
2014-09-24 23:24:51 +02:00
|
|
|
|
2014-10-10 18:13:46 +02:00
|
|
|
<% if (post && typeof(post) !== 'undefined') { %>
|
2014-09-24 23:24:51 +02:00
|
|
|
<div class="post">
|
|
|
|
<%= postContentTemplate({post: post}) %>
|
|
|
|
<div class="post-footer">
|
|
|
|
|
|
|
|
<span class="left">
|
2014-09-30 22:09:43 +02:00
|
|
|
<% var showLink = canViewPosts %>
|
|
|
|
|
|
|
|
<% if (showLink) { %>
|
|
|
|
<a href="#/post/<%= post.id %>">
|
|
|
|
<% } %>
|
|
|
|
|
|
|
|
<%= post.idMarkdown %>
|
|
|
|
|
|
|
|
<% if (showLink) { %>
|
|
|
|
</a>
|
|
|
|
<% } %>
|
2014-09-24 23:24:51 +02:00
|
|
|
|
|
|
|
uploaded
|
|
|
|
<%= formatRelativeTime(post.uploadTime) %>
|
|
|
|
</span>
|
|
|
|
|
|
|
|
<span class="right">
|
|
|
|
featured by
|
2014-09-26 20:41:28 +02:00
|
|
|
|
2014-09-30 22:09:43 +02:00
|
|
|
<% var showLink = canViewUsers && post.user.name %>
|
|
|
|
|
|
|
|
<% if (showLink) { %>
|
2014-09-26 20:41:28 +02:00
|
|
|
<a href="#/user/<%= post.user.name %>">
|
|
|
|
<% } %>
|
|
|
|
|
2014-10-05 11:05:34 +02:00
|
|
|
<img width="25" height="25" class="author-avatar"
|
2014-09-24 23:24:51 +02:00
|
|
|
src="/data/thumbnails/25x25/avatars/<%= post.user.name || '!' %>"
|
|
|
|
alt="<%= post.user.name || 'Anonymous user' %>"/>
|
|
|
|
|
|
|
|
<%= post.user.name || 'Anonymous user' %>
|
2014-09-26 20:41:28 +02:00
|
|
|
|
2014-09-30 22:09:43 +02:00
|
|
|
<% if (showLink) { %>
|
2014-09-26 20:41:28 +02:00
|
|
|
</a>
|
|
|
|
<% } %>
|
2014-09-24 23:24:51 +02:00
|
|
|
</span>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<% } %>
|
2014-10-12 19:30:50 +02:00
|
|
|
|
|
|
|
<p>
|
2014-10-19 16:01:00 +02:00
|
|
|
<small class="version">Version: <a href="//github.com/rr-/szurubooru/commits/master"><%= version %></a> (built <%= formatRelativeTime(buildTime) %>)</small>
|
2014-10-12 19:30:50 +02:00
|
|
|
</p>
|
2014-09-24 23:24:51 +02:00
|
|
|
</div>
|