Show More
@@ -1,68 +1,66 b'' | |||
|
1 | 1 | {% extends "boards/base.html" %} |
|
2 | 2 | |
|
3 | 3 | {% load i18n %} |
|
4 | 4 | {% load cache %} |
|
5 | 5 | {% load static from staticfiles %} |
|
6 | 6 | {% load board %} |
|
7 | 7 | |
|
8 | 8 | {% block head %} |
|
9 | 9 | <title>{{ thread.get_opening_post.get_title|striptags|truncatewords:10 }} |
|
10 | 10 | - {{ site_name }}</title> |
|
11 | 11 | {% endblock %} |
|
12 | 12 | |
|
13 | 13 | {% block content %} |
|
14 | 14 | {% spaceless %} |
|
15 | 15 | {% get_current_language as LANGUAGE_CODE %} |
|
16 | 16 | |
|
17 | <script src="{% static 'js/thread.js' %}"></script> | |
|
18 | ||
|
19 | 17 | {% cache 600 thread_gallery_view thread.id thread.last_edit_time LANGUAGE_CODE request.get_host %} |
|
20 | 18 | <div class="image-mode-tab"> |
|
21 | 19 | <a href="{% url 'thread' thread.get_opening_post.id %}">{% trans 'Normal mode' %}</a>, |
|
22 | 20 | <a class="current_mode" href="{% url 'thread_mode' thread.get_opening_post.id 'gallery' %}">{% trans 'Gallery mode' %}</a> |
|
23 | 21 | </div> |
|
24 | 22 | |
|
25 | 23 | <div id="posts-table"> |
|
26 | 24 | {% for post in posts %} |
|
27 | 25 | <div class="gallery_image"> |
|
28 | 26 | {% with post.get_first_image as image %} |
|
29 | 27 | <div> |
|
30 | 28 | <a |
|
31 | 29 | class="thumb" |
|
32 | 30 | href="{{ image.image.url }}"><img |
|
33 | 31 | src="{{ image.image.url_200x150 }}" |
|
34 | 32 | alt="{{ post.id }}" |
|
35 | 33 | width="{{ image.pre_width }}" |
|
36 | 34 | height="{{ image.pre_height }}" |
|
37 | 35 | data-width="{{ image.width }}" |
|
38 | 36 | data-height="{{ image.height }}"/> |
|
39 | 37 | </a> |
|
40 | 38 | </div> |
|
41 | 39 | <div class="gallery_image_metadata"> |
|
42 | 40 | {{ image.width }}x{{ image.height }} |
|
43 | 41 | {% image_actions image.image.url request.get_host %} |
|
44 | 42 | </div> |
|
45 | 43 | {% endwith %} |
|
46 | 44 | </div> |
|
47 | 45 | {% endfor %} |
|
48 | 46 | </div> |
|
49 | 47 | {% endcache %} |
|
50 | 48 | |
|
51 | 49 | {% endspaceless %} |
|
52 | 50 | {% endblock %} |
|
53 | 51 | |
|
54 | 52 | {% block metapanel %} |
|
55 | 53 | |
|
56 | 54 | {% get_current_language as LANGUAGE_CODE %} |
|
57 | 55 | |
|
58 | 56 | <span class="metapanel" data-last-update="{{ last_update }}"> |
|
59 | 57 | {% cache 600 thread_meta thread.last_edit_time moderator LANGUAGE_CODE %} |
|
60 | 58 | <span id="reply-count">{{ thread.get_reply_count }}</span>/{{ max_replies }} |
|
61 | 59 | {% trans 'messages' %}, |
|
62 | 60 | <span id="image-count">{{ thread.get_images_count }}</span> {% trans 'images' %}. |
|
63 | 61 | {% trans 'Last update: ' %}{{ thread.last_edit_time }} |
|
64 | 62 | [<a href="rss/">RSS</a>] |
|
65 | 63 | {% endcache %} |
|
66 | 64 | </span> |
|
67 | 65 | |
|
68 | 66 | {% endblock %} |
General Comments 0
You need to be logged in to leave comments.
Login now