49 lines
1.7 KiB
Smarty
49 lines
1.7 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 { %>
|
|
<a href='/post/<%= ctx.post.id %>/edit'>
|
|
<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>
|
|
|
|
<section class='comments'>
|
|
<!-- TODO: comments -->
|
|
</section>
|
|
</div>
|
|
</div>
|