szurubooru/public_html/templates/home.tpl

65 lines
1.3 KiB
Smarty
Raw Normal View History

2014-09-24 23:24:51 +02:00
<div id="home">
<h1><%= title %></h1>
2014-12-07 13:43:15 +01:00
<p class="subheader">
Serving <%= globals.postCount || 0 %> posts (<%= formatFileSize(globals.postSize || 0) %>)
2014-09-25 11:45:46 +02:00
</p>
2014-09-24 23:24:51 +02:00
<% if (post && post.id) { %>
2014-09-24 23:24:51 +02:00
<div class="post">
2014-10-22 10:42:15 +02:00
<div id="post-content-target">
</div>
2014-09-24 23:24:51 +02:00
<div class="post-footer">
2014-12-07 13:43:15 +01:00
<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) %>
2014-12-07 13:43:15 +01:00
</span>
2014-09-24 23:24:51 +02:00
2014-12-07 13:43:15 +01:00
<span class="right">
2014-11-09 20:10:01 +01:00
featured
<%= formatRelativeTime(post.lastFeatureTime) %>
by
2014-09-26 20:41:28 +02:00
<% var showLink = canViewUsers && user.name %>
2014-09-30 22:09:43 +02:00
<% if (showLink) { %>
<a href="#/user/<%= user.name %>">
2014-09-26 20:41:28 +02:00
<% } %>
2014-10-05 11:05:34 +02:00
<img width="25" height="25" class="author-avatar"
src="/data/thumbnails/25x25/avatars/<%= user.name || '!' %>"
alt="<%= user.name || 'Anonymous user' %>"/>
2014-09-24 23:24:51 +02:00
<%= 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-12-07 13:43:15 +01:00
</span>
2014-09-24 23:24:51 +02:00
</div>
</div>
<% } %>
<p>
2014-11-07 14:40:45 +01:00
<small class="version">
Version: <a href="//github.com/rr-/szurubooru/commits/master"><%= version %></a> (built <%= formatRelativeTime(buildTime) %>)
|
<a href="#/history">Recent tag and post edits</a>
</small>
</p>
2014-09-24 23:24:51 +02:00
</div>