{% extends 'layout/base_sidebar_tags.html' %} {% from '_includes.html' import render_tag_input, render_comment with context %} {% block sidebar %}
Id: {{ post.id }}
Author: {{ post.author.username or "Deleted Account" }}
{% if post.is_approved %}
Approved by: {{ post.approver.username }}
{% else %}
Status: {{ post.status.name.capitalize() }}
{% endif %}
Rating: {{ post.rating.name.capitalize() }}
Posted: {{ post.natural_created() }}
{#{% if post.created != post.updated %}
Last edited: {{ post.updated.date() }}
{% endif %}#}
Source: {{ post.source }}
File size: {{ post.filesize_human }}
Image res: {{ post.image_resolution }}
{% if post.parent %}
Parent post #{{post.parent_id}}
{% endif %} {% if post.children %}
Children: {% for child in post.children %} #{{child.id}} {% endfor%}
{% endif %}
Enlarge image
{% if not post.filetype.is_jpeg %}
Original PNG file
{% endif %}
{{ super() }} {% if post.can_edit %}

Edit

{{ editform.csrf_token }} {{ editform.id() }} {{ editform.referer() }} {{ editform.source }}
{{ editform.parent.label }} {{ editform.parent }}
{{ render_tag_input(editform.tags, sel_tags=tags, param_dict={'alt-selblock': 'section.sidepanel article.tags .tags-inpage'}) }} {{ editform.edit() }} {% if not post.is_approved %}{{ editform.approve() }}{% endif %}
{% endif %} {% endblock %} {% block main_content %}

Comments

{% for comment in comments %} {{ render_comment(comment, comment.editform, user_link=url_for('user.profile', username=comment.user.username).replace('%40', '@')) }} {% endfor %} {% if not comments %}

No comments so far.

{% endif %}
{% if current_user.is_authenticated %}

Reply

{{ comment_form.csrf_token }} {{ comment_form.post_id() }} {{ comment_form.content() }} {{ comment_form.create(value="Send") }}
{% else %}

To comment, please log in.

{% endif %}
{% endblock %}