|
|
|
@ -35,7 +35,7 @@
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- Post Info -->
|
|
|
|
|
<section class="section">
|
|
|
|
|
<section class="section" style="padding: 0;">
|
|
|
|
|
<div class="content">
|
|
|
|
|
<h1>{{ post.title }}</h1>
|
|
|
|
|
<p>{{ post.text }}</p>
|
|
|
|
@ -44,14 +44,18 @@
|
|
|
|
|
<a href="{{ url_for('post.delete', id=post.id) }}" class="button is-danger">Reject</a>
|
|
|
|
|
{% endif %}
|
|
|
|
|
<p class="mt-2">Submitted by <i><u><a href="/?submitter={{ post.user.username }}">{{ post.user.username }}</a></u></i> at <i>{{ post.timestamp }}</i></p>
|
|
|
|
|
<div style="max-width: 80vh; margin: 0 auto;">
|
|
|
|
|
{% if post.get_image_path().endswith('mp4') %}
|
|
|
|
|
<video style="max-height: 100vh!important;" controls>
|
|
|
|
|
<source src="{{ url_for('post.uploaded_file', filename=post.image_name) }}" type="video/mp4">
|
|
|
|
|
Your browser does not support the video tag.
|
|
|
|
|
</video>
|
|
|
|
|
{% else %}
|
|
|
|
|
<a href="{{ url_for('post.uploaded_file', filename=post.image_name, _external=True) }}">
|
|
|
|
|
<img alt="SuchWow #{{ post.id }} - {{ post.title }} by {{ post.user.username }}" src="{{ url_for('post.uploaded_file', filename=post.image_name) }}" />
|
|
|
|
|
</a>
|
|
|
|
|
{% endif %}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</section>
|
|
|
|
|
|
|
|
|
|