thread_gallery.html
39 lines
| 1.2 KiB
| text/html
|
HtmlLexer
|
r1042 | {% extends "boards/thread.html" %} | ||
|
r458 | |||
{% load i18n %} | ||||
{% load static from staticfiles %} | ||||
{% load board %} | ||||
|
r1065 | {% load tz %} | ||
|
r458 | |||
{% block head %} | ||||
|
r1040 | <meta name="robots" content="noindex"> | ||
|
r542 | <title>{{ thread.get_opening_post.get_title|striptags|truncatewords:10 }} | ||
- {{ site_name }}</title> | ||||
|
r458 | {% endblock %} | ||
|
r1180 | {% block thread_content %} | ||
|
r458 | {% get_current_language as LANGUAGE_CODE %} | ||
|
r1065 | {% get_current_timezone as TIME_ZONE %} | ||
|
r458 | |||
<div id="posts-table"> | ||||
|
r1047 | {% if posts %} | ||
{% for post in posts %} | ||||
<div class="gallery_image"> | ||||
{% with post.get_first_image as image %} | ||||
|
r1124 | {% autoescape off %} | ||
{{ image.get_view }} | ||||
{% endautoescape %} | ||||
|
r1047 | <div class="gallery_image_metadata"> | ||
{{ image.width }}x{{ image.height }} | ||||
{% image_actions image.image.url request.get_host %} | ||||
<br /> | ||||
|
r1160 | <a href="{{ post.get_absolute_url }}">>>{{ post.id }}</a> | ||
|
r1047 | </div> | ||
{% endwith %} | ||||
</div> | ||||
{% endfor %} | ||||
{% else %} | ||||
{% trans 'No images.' %} | ||||
{% endif %} | ||||
|
r458 | </div> | ||
{% endblock %} | ||||