sarsooxyz.pyreact/templates/art.html

27 lines
713 B
HTML

{% extends 'base.html' %}
{% block title %}art{% endblock %}
{% block content %}
{% for tag in tags %}
<div class="row">
<h1 class="sectiontitle">{{ tag.name }}</h1>
{% if tag.description %}<p>{{ tag.description }}</p>{% endif %}
</div>
{% for row in tag.images|batch(3) %}
<div class="row">
{% for image in row %}
{#{% if loop.index0 % 3 == 0 %}<div class="row">{% endif %}#}
<div class="card col-pad-4">
<img src="{{ staticroot }}art/{{ image.file_name }}.jpg" alt="{{ image.file_name }}" class="col-pad-4">
<p><b>{{ image.description }}</b></p>
</div>
{#{% if loop.index % 3 == 0 or loop.last %}</div>{% endif %}#}
{% endfor %}
</div>
{% endfor %}
{% endfor %}
{% endblock %}