Revert "fileinfo.html: use semantic html tags figure and figcaption for files"

This reverts commit a1d5f755b1.
This commit is contained in:
Zankaria 2024-09-05 16:43:12 +02:00
parent 20c9942a6b
commit 4350d866b0

View file

@ -3,11 +3,11 @@
{% else %} {% else %}
<div class="files {% if post.num_files > 1 %} multifile{% endif %}"> <div class="files {% if post.num_files > 1 %} multifile{% endif %}">
{% for file in post.files %} {% for file in post.files %}
<figure class="file{% if post.num_files > 1 %} multifile" style="width:{{ file.thumbwidth + 40 }}px"{% else %}"{% endif %}> <div class="file{% if post.num_files > 1 %} multifile" style="width:{{ file.thumbwidth + 40 }}px"{% else %}"{% endif %}>
{% if file.file == 'deleted' %} {% if file.file == 'deleted' %}
<img class="post-image deleted" src="{{ config.root }}{{ config.image_deleted }}" alt="" /> <img class="post-image deleted" src="{{ config.root }}{{ config.image_deleted }}" alt="" />
{% else %} {% else %}
<figcaption class="fileinfo">File: <a href="{{ config.uri_img }}{{ file.file }}" target="_blank">{{ file.file }}</a> <span class="details"> <p class="fileinfo">File: <a href="{{ config.uri_img }}{{ file.file }}" target="_blank">{{ file.file }}</a> <span class="details">
( (
{% if file.thumb == 'spoiler' %} {% if file.thumb == 'spoiler' %}
{% trans %}Spoiler Image{% endtrans %}, {% trans %}Spoiler Image{% endtrans %},
@ -28,10 +28,10 @@
{% endif %} {% endif %}
) )
{% include "post/image_identification.html" %} {% include "post/image_identification.html" %}
{% include "post/file_controls.html" %}</span></figcaption> {% include "post/file_controls.html" %}</span></p>
{% include "post/image.html" with {'post':file} %} {% include "post/image.html" with {'post':file} %}
{% endif %} {% endif %}
</figure> </div>
{% endfor %} {% endfor %}
</div> </div>
{% endif %} {% endif %}