@include 'partial/header.html'

@{(app.get_user_by_id(post.author_id) or { app.get_unknown_user() }).get_name()} - @post.title

@post.body

likes: @{app.get_net_likes_for_post(post.id)}

posted at: @post.posted_at

@if ctx.is_logged_in() && post.author_id == user.id

edit post

@end @if ctx.is_logged_in()
@end @if ctx.is_logged_in() && (post.author_id == user.id || user.admin)
@if post.author_id == user.id

manage post:

@else if user.admin

admin powers:

@end
@end
@include 'partial/footer.html'