##// END OF EJS Templates
Fixed resetting cache when the thread is bumped
Fixed resetting cache when the thread is bumped

File last commit:

r1180:e46298a6 default
r1240:92ddbd4a default
Show More
thread_gallery.html
39 lines | 1.2 KiB | text/html | HtmlLexer
neko259
Made normal and gallery view use the same super-template with the same...
r1042 {% extends "boards/thread.html" %}
neko259
Added a server-side gallery and mode switcher
r458
{% load i18n %}
{% load static from staticfiles %}
{% load board %}
neko259
Added timezone support (time zone is selected in settings)
r1065 {% load tz %}
neko259
Added a server-side gallery and mode switcher
r458
{% block head %}
neko259
Added noindex to the pages without unique content or user-specific ones
r1040 <meta name="robots" content="noindex">
neko259
Rewriting views to class-based
r542 <title>{{ thread.get_opening_post.get_title|striptags|truncatewords:10 }}
- {{ site_name }}</title>
neko259
Added a server-side gallery and mode switcher
r458 {% endblock %}
neko259
Added tree mode for the thread
r1180 {% block thread_content %}
neko259
Added a server-side gallery and mode switcher
r458 {% get_current_language as LANGUAGE_CODE %}
neko259
Added timezone support (time zone is selected in settings)
r1065 {% get_current_timezone as TIME_ZONE %}
neko259
Added a server-side gallery and mode switcher
r458
<div id="posts-table">
neko259
If there are no images in thread, show a message "no images" in gallery...
r1047 {% if posts %}
{% for post in posts %}
<div class="gallery_image">
{% with post.get_first_image as image %}
neko259
Refactored gallery, use image.get_view instead of manual template block
r1124 {% autoescape off %}
{{ image.get_view }}
{% endautoescape %}
neko259
If there are no images in thread, show a message "no images" in gallery...
r1047 <div class="gallery_image_metadata">
{{ image.width }}x{{ image.height }}
{% image_actions image.image.url request.get_host %}
<br />
neko259
Use get_absolute_url instead of get_url for post, tag and thread
r1160 <a href="{{ post.get_absolute_url }}">>>{{ post.id }}</a>
neko259
If there are no images in thread, show a message "no images" in gallery...
r1047 </div>
{% endwith %}
</div>
{% endfor %}
{% else %}
{% trans 'No images.' %}
{% endif %}
neko259
Added a server-side gallery and mode switcher
r458 </div>
{% endblock %}