szurubooru/client/html/post.tpl

51 lines
1.8 KiB
Smarty

<div class='content-wrapper transparent post-view'>
<aside class='sidebar'>
<nav class='buttons'>
<article class='next-post'>
<% if (ctx.nextPostId) { %>
<a href='/post/<%= ctx.nextPostId %>'>
<% } else { %>
<a class='inactive'>
<% } %>
<i class='fa fa-chevron-left'></i>
<span class='vim-nav-hint'>Next post</span>
</a>
</article>
<article class='previous-post'>
<% if (ctx.prevPostId) { %>
<a href='/post/<%= ctx.prevPostId %>'>
<% } else { %>
<a class='inactive'>
<% } %>
<i class='fa fa-chevron-right'></i>
<span class='vim-nav-hint'>Previous post</span>
</a>
</article>
<article class='edit-post'>
<% if (ctx.editMode) { %>
<a href='/post/<%= ctx.post.id %>'>
<i class='fa fa-eye'></i>
<span class='vim-nav-hint'>Back to view mode</span>
</a>
<% } else { %>
<% if (ctx.canEditPosts) { %>
<a href='/post/<%= ctx.post.id %>/edit'>
<% } else { %>
<a class='inactive'>
<% } %>
<i class='fa fa-pencil'></i>
<span class='vim-nav-hint'>Edit post</span>
</a>
<% } %>
</article>
</nav>
<div class='sidebar-container'></div>
</aside>
<div class='content'>
<div class='post-container'></div>
<div class='comments-container'></div>
</div>
</div>