##// END OF EJS Templates
Added timezone support (time zone is selected in settings)
Added timezone support (time zone is selected in settings)

File last commit:

r1065:eb6bb3e8 default
r1065:eb6bb3e8 default
Show More
thread_gallery.html
56 lines | 2.1 KiB | text/html | HtmlLexer
{% extends "boards/thread.html" %}
{% load i18n %}
{% load cache %}
{% load static from staticfiles %}
{% load board %}
{% load tz %}
{% block head %}
<meta name="robots" content="noindex">
<title>{{ thread.get_opening_post.get_title|striptags|truncatewords:10 }}
- {{ site_name }}</title>
{% endblock %}
{% block content %}
{% get_current_language as LANGUAGE_CODE %}
{% get_current_timezone as TIME_ZONE %}
{% cache 600 thread_gallery_view thread.id thread.last_edit_time LANGUAGE_CODE request.get_host TIME_ZONE %}
<div class="image-mode-tab">
<a href="{% url 'thread' thread.get_opening_post.id %}">{% trans 'Normal mode' %}</a>,
<a class="current_mode" href="{% url 'thread_gallery' thread.get_opening_post.id %}">{% trans 'Gallery mode' %}</a>
</div>
<div id="posts-table">
{% if posts %}
{% for post in posts %}
<div class="gallery_image">
{% with post.get_first_image as image %}
<div>
<a
class="thumb"
href="{{ image.image.url }}"><img
src="{{ image.image.url_200x150 }}"
alt="{{ post.id }}"
width="{{ image.pre_width }}"
height="{{ image.pre_height }}"
data-width="{{ image.width }}"
data-height="{{ image.height }}"/>
</a>
</div>
<div class="gallery_image_metadata">
{{ image.width }}x{{ image.height }}
{% image_actions image.image.url request.get_host %}
<br />
<a href="{{ post.get_url }}">>>{{ post.id }}</a>
</div>
{% endwith %}
</div>
{% endfor %}
{% else %}
{% trans 'No images.' %}
{% endif %}
</div>
{% endcache %}
{% endblock %}