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

This commit is contained in:
Zankaria 2024-09-05 15:54:30 +02:00
parent 4611633231
commit a1d5f755b1

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 %}
<div class="file{% if post.num_files > 1 %} multifile" style="width:{{ file.thumbwidth + 40 }}px"{% else %}"{% endif %}> <figure 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 %}
<p class="fileinfo">File: <a href="{{ config.uri_img }}{{ file.file }}" target="_blank">{{ file.file }}</a> <span class="details"> <figcaption 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></p> {% include "post/file_controls.html" %}</span></figcaption>
{% include "post/image.html" with {'post':file} %} {% include "post/image.html" with {'post':file} %}
{% endif %} {% endif %}
</div> </figure>
{% endfor %} {% endfor %}
</div> </div>
{% endif %} {% endif %}