|
|
@ -16,13 +16,20 @@
|
|
|
|
{% if posts %}
|
|
|
|
{% if posts %}
|
|
|
|
{% for row in posts | batch(4) %}
|
|
|
|
{% for row in posts | batch(4) %}
|
|
|
|
<div class="columns">
|
|
|
|
<div class="columns">
|
|
|
|
{% for post in row %}
|
|
|
|
{% for p in row %}
|
|
|
|
{% set post = post.show() %}
|
|
|
|
{% set post = p.show() %}
|
|
|
|
<div class="column">
|
|
|
|
<div class="column">
|
|
|
|
<div class="card">
|
|
|
|
<div class="card">
|
|
|
|
<div class="card-image">
|
|
|
|
<div class="card-image">
|
|
|
|
<a href="{{ url_for('post.read', id=post.id) }}">
|
|
|
|
<a href="{{ url_for('post.read', id=post.id) }}">
|
|
|
|
<img src="{{ url_for('post.uploaded_file', filename=post.thumbnail_name) }}" alt="Placeholder image">
|
|
|
|
{% if p.get_image_path().endswith('mp4') %}
|
|
|
|
|
|
|
|
<video style="max-height: 100vh!important;" controls>
|
|
|
|
|
|
|
|
<source src="{{ url_for('post.uploaded_file', filename=p.image_name) }}" type="video/mp4">
|
|
|
|
|
|
|
|
Your browser does not support the video tag.
|
|
|
|
|
|
|
|
</video>
|
|
|
|
|
|
|
|
{% else %}
|
|
|
|
|
|
|
|
<img alt="SuchWow #{{ post.id }} - {{ post.title }} by {{ post.submitter }}" src="{{ url_for('post.uploaded_file', filename=post.thumbnail_name) }}" />
|
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="card-content">
|
|
|
|
<div class="card-content">
|
|
|
|