##// END OF EJS Templates
Same as previous, but even more
Same as previous, but even more

File last commit:

r1310:c48ffdc6 2.9.0 default
r1310:c48ffdc6 2.9.0 default
Show More
random.html
37 lines | 1.1 KiB | text/html | HtmlLexer
{% extends "boards/base.html" %}
{% load i18n %}
{% block head %}
<title>{% trans 'Random images' %} - {{ site_name }}</title>
{% endblock %}
{% block content %}
{% if images %}
<div class="random-images-table">
<div>
{% for image in images %}
<div class="gallery_image">
{% autoescape off %}
{{ image.get_view }}
{% endautoescape %}
{% with image.get_random_associated_post as post %}
{{ post.get_link_view|safe }}
<div>
{% for tag in post.get_thread.get_required_tags.all %}
{{ tag.get_view|safe }}{% if not forloop.last %},{% endif %}
{% endfor %}
</div>
{% endwith %}
</div>
{% if forloop.counter|divisibleby:"3" %}
</div>
<div>
{% endif %}
{% endfor %}
</div>
</div>
{% endif %}
{% endblock %}