<% if (ctx.nextPostId) { %> <% } else { %> <% } %> Next post
<% if (ctx.prevPostId) { %> <% } else { %> <% } %> Previous post
<% if (ctx.editMode) { %> Back to view mode <% } else { %> <% if (ctx.canEditPosts) { %> <% } else { %> <% } %> Edit post <% } %>