Add: seen post overlay to gallery template

This commit is contained in:
Aroy-Art 2024-06-26 11:16:11 +02:00
parent 4e0ab1ee08
commit 1a715c86d5
Signed by: Aroy
GPG key ID: DB9689E9391DD156

View file

@ -10,8 +10,11 @@
<div class="gallery-container"> <div class="gallery-container">
{% for submission in submissions %} {% for submission in submissions %}
<div class="gallery-item bg-dark"> <div class="gallery-item bg-dark">
{% include "sites/partials/site-btn-overlay.html" with category=submission.category.name %}
{% include "sites/partials/site-btn-overlay.html" with category=submission.category.name %}
<span class="seen-overlay text-primary-emphasis" data-seen="false" data-hash="{{ submission.submission_hash }}" href=''></span>
{% if submission.content_object.files.exists %} {% if submission.content_object.files.exists %}
{% if submission.content_object.files.first.file_mime|is_image %} {% if submission.content_object.files.first.file_mime|is_image %}
@ -83,4 +86,4 @@
</div> </div>
</div> </div>
{% endfor %} {% endfor %}
</div> </div>