You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
suchwow/suchwow/templates/post/read.html

36 lines
1.3 KiB

{% extends 'base.html' %}
{% block content %}
<div class="container">
<div class="post" style="text-align:center;">
<a href="/">< Go Back</a>
{% if post.hidden %}
<h2>You cannot see this post</h2>
{% else %}
<h1>{{ post.title }}</h1>
<p class="subtitle">{{ post.text }}</p>
<p class="subtext">Submitted by <i><u>{{ post.submitter }}</u></i> at <i>{{ post.timestamp }}</i></p>
<br>
<img src="{{ url_for('post.uploaded_file', filename=post.image_name) }}" width=500/ style="margin-bottom:1em;border-radius:4px;">
<hr>
4 years ago
<p style="word-break:break-all;">Vote for this post by sending WOW to the following address:<br><i>{{ address }}</i></p>
<hr>
<h3>Comments</h3>
{% if comments %}
{% for comment in comments %}
<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>
{% endfor %}
{% else %}
<p>No comments yet.</p>
{% endif %}
{% endif %}
<hr>
<a href="{{ url_for('comment.create', post_id=post.id) }}"><button class="btn btn-warning">Leave a Comment</button></a>
</div>
</div>
{% endblock %}