|
|
@ -21,10 +21,10 @@
|
|
|
|
<h1>{{ post.title }}</h1>
|
|
|
|
<h1>{{ post.title }}</h1>
|
|
|
|
<p>{{ post.text }}</p>
|
|
|
|
<p>{{ post.text }}</p>
|
|
|
|
{% if not post.approved %}
|
|
|
|
{% if not post.approved %}
|
|
|
|
<a href="{{ url_for('post.approve', id=post.id) }}"><button type="button" name="button">Approve</button></a>
|
|
|
|
<a href="{{ url_for('post.approve', id=post.id) }}" class="button is-success">Approve</a>
|
|
|
|
<a href="{{ url_for('post.delete', id=post.id) }}"><button type="button" name="button">Reject</button></a>
|
|
|
|
<a href="{{ url_for('post.delete', id=post.id) }}" class="button is-danger">Reject</a>
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
<p>Submitted by <i><u><a href="/?submitter={{ post.submitter }}">{{ post.submitter }}</a></u></i> at <i>{{ post.timestamp }}</i></p>
|
|
|
|
<p class="mt-2">Submitted by <i><u><a href="/?submitter={{ post.submitter }}">{{ post.submitter }}</a></u></i> at <i>{{ post.timestamp }}</i></p>
|
|
|
|
<!-- <img src="{{ url_for('post.uploaded_file', filename=post.image_name) }}" width=600/ style="border-radius:4px;"> -->
|
|
|
|
<!-- <img src="{{ url_for('post.uploaded_file', filename=post.image_name) }}" width=600/ style="border-radius:4px;"> -->
|
|
|
|
{% if post.get_image_path().endswith('mp4') %}
|
|
|
|
{% if post.get_image_path().endswith('mp4') %}
|
|
|
|
<video style="max-height: 100vh!important;" controls>
|
|
|
|
<video style="max-height: 100vh!important;" controls>
|
|
|
|