|
|
@ -3,59 +3,59 @@
|
|
|
|
{% from "_formhelpers.html" import errors %}
|
|
|
|
{% from "_formhelpers.html" import errors %}
|
|
|
|
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
{% block content %}
|
|
|
|
<div class="important_subwrap">
|
|
|
|
<div class="important_subwrap">
|
|
|
|
<section class="side_panel">
|
|
|
|
<section class="side_panel">
|
|
|
|
<article class="post_desc">
|
|
|
|
<article class="post_desc">
|
|
|
|
<!-- <h4>Description</h4> -->
|
|
|
|
<!-- <h4>Description</h4> -->
|
|
|
|
<!-- <img src="/static/profile.jpg" alt=""> -->
|
|
|
|
<!-- <img src="/static/profile.jpg" alt=""> -->
|
|
|
|
<div class="id">Id: {{ post.id }}</div>
|
|
|
|
<div class="id">Id: {{ post.id }}</div>
|
|
|
|
<div class="author">Author: {{ post.author.username }}</div>
|
|
|
|
<div class="author">Author: {{ post.author.username }}</div>
|
|
|
|
{% if post.is_approved %}
|
|
|
|
{% if post.is_approved %}
|
|
|
|
<div class="approver">Approved by: {{ post.approver.username }}</div>
|
|
|
|
<div class="approver">Approved by: {{ post.approver.username }}</div>
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
{% if not post.is_approved %}
|
|
|
|
{% if not post.is_approved %}
|
|
|
|
<div class="status">Status: {{ post.status.name.capitalize() }}</div>
|
|
|
|
<div class="status">Status: {{ post.status.name.capitalize() }}</div>
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
<div class="time">Posted: 10 hours ago</div>
|
|
|
|
<div class="time">Posted: 10 hours ago</div>
|
|
|
|
<div class="source">Source: <a href="{{ post.source }}">{{ post.source }}</a></div>
|
|
|
|
<div class="source">Source: <a href="{{ post.source }}">{{ post.source }}</a></div>
|
|
|
|
<div class="size">File size: {{ post.filesize_human }}</div>
|
|
|
|
<div class="size">File size: {{ post.filesize_human }}</div>
|
|
|
|
<div class="resolution">Image res: {{ post.image_resolution }}</div>
|
|
|
|
<div class="resolution">Image res: {{ post.image_resolution }}</div>
|
|
|
|
<div class="jpeg"><a href="{{ post.url(path=post.image_url, endpoint='jpeg') }}">Enlarge image</a></div>
|
|
|
|
<div class="jpeg"><a href="{{ post.url(path=post.image_url, endpoint='jpeg') }}">Enlarge image</a></div>
|
|
|
|
{% if post.filetype.name == 'png' %}
|
|
|
|
{% if post.filetype.name == 'png' %}
|
|
|
|
<div class="png"><a href="{{ post.url(path=post.image_url) }}">Original PNG file</a></div>
|
|
|
|
<div class="png"><a href="{{ post.url(path=post.image_url) }}">Original PNG file</a></div>
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
|
|
</article>
|
|
|
|
</article>
|
|
|
|
{{ render_tags() }}
|
|
|
|
{{ render_tags() }}
|
|
|
|
{% if post.can_edit %}
|
|
|
|
{% if post.can_edit %}
|
|
|
|
{{ render_post_edit() }}
|
|
|
|
{{ render_post_edit() }}
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
</section>
|
|
|
|
</section>
|
|
|
|
<section class="post_single">
|
|
|
|
<section class="post_single">
|
|
|
|
<div class="image">
|
|
|
|
<div class="image">
|
|
|
|
<img src="{{ post.url(path=post.image_url, endpoint='jpeg') }}" alt="">
|
|
|
|
<img src="{{ post.url(path=post.image_url, endpoint='jpeg') }}" alt="">
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</section>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<section class="comments">
|
|
|
|
</section>
|
|
|
|
<h3>Comments</h3>
|
|
|
|
</div>
|
|
|
|
{{ render_comments() }}
|
|
|
|
<section class="comments">
|
|
|
|
|
|
|
|
<h3>Comments</h3>
|
|
|
|
|
|
|
|
{{ render_comments() }}
|
|
|
|
|
|
|
|
|
|
|
|
{% if current_user.is_authenticated %}
|
|
|
|
{% if current_user.is_authenticated %}
|
|
|
|
<div class="form">
|
|
|
|
<div class="form">
|
|
|
|
<h3>Reply</h3>
|
|
|
|
<h3>Reply</h3>
|
|
|
|
<form action="{{ url_for('post.comment') }}" method="post">
|
|
|
|
<form action="{{ url_for('post.comment') }}" method="post">
|
|
|
|
{{ comment_form.csrf_token }}
|
|
|
|
{{ comment_form.csrf_token }}
|
|
|
|
{{ comment_form.post_id() }}
|
|
|
|
{{ comment_form.post_id() }}
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
{{ comment_form.content(cols=55, rows=6) }}
|
|
|
|
{{ comment_form.content(cols=55, rows=6) }}
|
|
|
|
{{ errors(comment_form.content) }}
|
|
|
|
{{ errors(comment_form.content) }}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div>{{ comment_form.submit() }}</div>
|
|
|
|
|
|
|
|
</form>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% else %}
|
|
|
|
<div>{{ comment_form.submit() }}</div>
|
|
|
|
<h4>To comment, please log in.</h3>
|
|
|
|
</form>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
{% else %}
|
|
|
|
|
|
|
|
<h4>To comment, please log in.</h3>
|
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
</section>
|
|
|
|
{% endblock content %}
|
|
|
|
{% endblock content %}
|