2020-07-28 20:31:07 +00:00
|
|
|
{% extends 'base.html' %}
|
|
|
|
|
|
|
|
{% block content %}
|
2020-08-08 06:12:33 +00:00
|
|
|
|
2020-08-10 05:47:53 +00:00
|
|
|
<div class="container">
|
2020-08-08 06:12:33 +00:00
|
|
|
<div class="post" style="text-align:center;">
|
|
|
|
<a href="/">< Go Back</a>
|
2020-07-28 20:31:07 +00:00
|
|
|
{% if post.hidden %}
|
2020-08-08 06:12:33 +00:00
|
|
|
<h2>You cannot see this post</h2>
|
2020-07-28 20:31:07 +00:00
|
|
|
{% else %}
|
2020-08-08 06:12:33 +00:00
|
|
|
<h1>{{ post.title }}</h1>
|
|
|
|
<p class="subtitle">{{ post.text }}</p>
|
2020-08-10 05:47:53 +00:00
|
|
|
<p class="subtext">Submitted by <i><u>{{ post.submitter }}</u></i> at <i>{{ post.timestamp }}</i></p>
|
|
|
|
<br>
|
2020-08-08 06:12:33 +00:00
|
|
|
<img src="{{ url_for('post.uploaded_file', filename=post.image_name) }}" width=500/ style="margin-bottom:1em;border-radius:4px;">
|
2020-08-10 05:47:53 +00:00
|
|
|
<hr>
|
2020-08-10 06:59:45 +00:00
|
|
|
<p style="word-break:break-all;">Vote for this post by sending WOW to the following address:<br><i>{{ address }}</i></p>
|
2020-08-10 05:47:53 +00:00
|
|
|
<hr>
|
2020-08-10 05:52:01 +00:00
|
|
|
<h3>Comments</h3>
|
2020-08-10 05:47:53 +00:00
|
|
|
{% if comments %}
|
|
|
|
{% for comment in comments %}
|
2020-08-10 16:54:44 +00:00
|
|
|
<p id="comment{{ comment.id }}">
|
|
|
|
<a href="{{ url_for('post.read', id=post.id, _external=True) }}#comment{{ comment.id }}">#{{ comment.id }}</a> - <i>{{ comment.commenter.username }}</i> - {{ comment.comment }}
|
|
|
|
</p>
|
2020-08-10 05:47:53 +00:00
|
|
|
{% endfor %}
|
|
|
|
{% else %}
|
|
|
|
<p>No comments yet.</p>
|
|
|
|
{% endif %}
|
2020-07-28 20:31:07 +00:00
|
|
|
{% endif %}
|
2020-08-10 16:54:44 +00:00
|
|
|
<hr>
|
|
|
|
<a href="{{ url_for('comment.create', post_id=post.id) }}"><button class="btn btn-warning">Leave a Comment</button></a>
|
2020-08-08 06:12:33 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2020-07-28 20:31:07 +00:00
|
|
|
{% endblock %}
|