2019-02-17 13:05:06 +00:00
|
|
|
{% extends 'base.html' %}
|
|
|
|
|
2019-02-18 23:20:19 +00:00
|
|
|
|
2019-02-17 13:05:06 +00:00
|
|
|
{% block title %}art{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
2019-02-19 14:11:06 +00:00
|
|
|
{% 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) %}
|
2019-02-19 11:52:25 +00:00
|
|
|
<div class="row">
|
|
|
|
{% for image in row %}
|
|
|
|
{#{% if loop.index0 % 3 == 0 %}<div class="row">{% endif %}#}
|
2019-02-17 14:10:42 +00:00
|
|
|
<div class="card col-pad-4">
|
2019-02-18 23:20:19 +00:00
|
|
|
<img src="{{ staticroot }}art/{{ image.file_name }}.jpg" alt="{{ image.file_name }}" class="col-pad-4">
|
|
|
|
<p><b>{{ image.description }}</b></p>
|
2019-02-17 14:10:42 +00:00
|
|
|
</div>
|
2019-02-19 11:52:25 +00:00
|
|
|
{#{% if loop.index % 3 == 0 or loop.last %}</div>{% endif %}#}
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
2019-02-18 23:20:19 +00:00
|
|
|
{% endfor %}
|
2019-02-19 11:52:25 +00:00
|
|
|
|
2019-02-19 14:11:06 +00:00
|
|
|
{% endfor %}
|
2019-02-17 13:05:06 +00:00
|
|
|
{% endblock %}
|