szurubooru/client/html/post.tpl

59 lines
2.1 KiB
Smarty
Raw Normal View History

<div class='content-wrapper transparent post-view'>
<aside class='sidebar'>
<nav class='buttons'>
<article class='next-post'>
<% if (ctx.nextPostId) { %>
<a href='<%= ctx.getPostUrl(ctx.nextPostId, ctx.parameters) %>'>
<% } 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='<%= ctx.getPostUrl(ctx.prevPostId, ctx.parameters) %>'>
<% } 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/<%- encodeURIComponent(ctx.post.id) %>'>
2016-07-03 13:46:49 +02:00
<i class='fa fa-reply'></i>
<span class='vim-nav-hint'>Back to view mode</span>
</a>
<% } else { %>
2016-06-11 09:59:29 +02:00
<% if (ctx.canEditPosts) { %>
<a href='<%= ctx.getPostEditUrl(ctx.post.id, ctx.parameters) %>'>
2016-06-11 09:59:29 +02:00
<% } 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>
2016-06-12 18:08:50 +02:00
<% if (ctx.canListComments) { %>
<div class='comments-container'></div>
<% } %>
<% if (ctx.canCreateComments) { %>
<h2>Add comment</h2>
<div class='comment-form-container'></div>
<% } %>
</div>
</div>