2016-06-06 18:57:22 +00:00
|
|
|
<div class='content-wrapper transparent post-view'>
|
|
|
|
<aside class='sidebar'>
|
|
|
|
<nav class='buttons'>
|
|
|
|
<article class='next-post'>
|
|
|
|
<% if (ctx.nextPostId) { %>
|
2016-07-30 14:54:13 +00:00
|
|
|
<% if (ctx.editMode) { %>
|
|
|
|
<a href='<%= ctx.getPostEditUrl(ctx.nextPostId, ctx.parameters) %>'>
|
|
|
|
<% } else { %>
|
|
|
|
<a href='<%= ctx.getPostUrl(ctx.nextPostId, ctx.parameters) %>'>
|
|
|
|
<% } %>
|
2016-06-06 18:57:22 +00:00
|
|
|
<% } else { %>
|
|
|
|
<a class='inactive'>
|
|
|
|
<% } %>
|
|
|
|
<i class='fa fa-chevron-left'></i>
|
2016-08-28 21:20:25 +00:00
|
|
|
<span class='vim-nav-hint'>< Next post</span>
|
2016-06-06 18:57:22 +00:00
|
|
|
</a>
|
|
|
|
</article>
|
|
|
|
<article class='previous-post'>
|
|
|
|
<% if (ctx.prevPostId) { %>
|
2016-07-30 14:54:13 +00:00
|
|
|
<% if (ctx.editMode) { %>
|
|
|
|
<a href='<%= ctx.getPostEditUrl(ctx.prevPostId, ctx.parameters) %>'>
|
|
|
|
<% } else { %>
|
|
|
|
<a href='<%= ctx.getPostUrl(ctx.prevPostId, ctx.parameters) %>'>
|
|
|
|
<% } %>
|
2016-06-06 18:57:22 +00:00
|
|
|
<% } else { %>
|
|
|
|
<a class='inactive'>
|
|
|
|
<% } %>
|
|
|
|
<i class='fa fa-chevron-right'></i>
|
2016-08-28 21:20:25 +00:00
|
|
|
<span class='vim-nav-hint'>Previous post ></span>
|
2016-06-06 18:57:22 +00:00
|
|
|
</a>
|
|
|
|
</article>
|
|
|
|
<article class='edit-post'>
|
|
|
|
<% if (ctx.editMode) { %>
|
2016-07-26 21:14:05 +00:00
|
|
|
<a href='<%= ctx.getPostUrl(ctx.post.id, ctx.parameters) %>'>
|
2016-07-03 11:46:49 +00:00
|
|
|
<i class='fa fa-reply'></i>
|
2016-06-06 18:57:22 +00:00
|
|
|
<span class='vim-nav-hint'>Back to view mode</span>
|
|
|
|
</a>
|
|
|
|
<% } else { %>
|
2016-08-23 20:23:59 +00:00
|
|
|
<% if (ctx.canEditPosts || ctx.canDeletePosts || ctx.canFeaturePosts) { %>
|
2016-07-07 19:18:35 +00:00
|
|
|
<a href='<%= ctx.getPostEditUrl(ctx.post.id, ctx.parameters) %>'>
|
2016-06-11 07:59:29 +00:00
|
|
|
<% } else { %>
|
|
|
|
<a class='inactive'>
|
|
|
|
<% } %>
|
2016-06-06 18:57:22 +00:00
|
|
|
<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 16:08:50 +00:00
|
|
|
<% if (ctx.canListComments) { %>
|
|
|
|
<div class='comments-container'></div>
|
|
|
|
<% } %>
|
|
|
|
|
|
|
|
<% if (ctx.canCreateComments) { %>
|
|
|
|
<h2>Add comment</h2>
|
|
|
|
<div class='comment-form-container'></div>
|
|
|
|
<% } %>
|
2016-06-06 18:57:22 +00:00
|
|
|
</div>
|
|
|
|
</div>
|