Show More
@@ -1,39 +1,37 b'' | |||||
1 | {% extends "boards/base.html" %} |
|
1 | {% extends "boards/base.html" %} | |
2 |
|
2 | |||
3 | {% load i18n %} |
|
3 | {% load i18n %} | |
4 |
|
4 | |||
5 | {% block head %} |
|
5 | {% block head %} | |
6 | <title>{% trans 'Random images' %} - {{ site_name }}</title> |
|
6 | <title>{% trans 'Random images' %} - {{ site_name }}</title> | |
7 | {% endblock %} |
|
7 | {% endblock %} | |
8 |
|
8 | |||
9 | {% block content %} |
|
9 | {% block content %} | |
10 |
|
10 | |||
11 | {% if images %} |
|
11 | {% if images %} | |
12 | <div class="random-images-table"> |
|
12 | <div class="random-images-table"> | |
13 | <div> |
|
13 | <div> | |
14 | {% for image in images %} |
|
14 | {% for image in images %} | |
15 | <div class="gallery_image"> |
|
15 | <div class="gallery_image"> | |
16 | {% autoescape off %} |
|
16 | {% autoescape off %} | |
17 | {{ image.get_view }} |
|
17 | {{ image.get_view }} | |
18 | {% endautoescape %} |
|
18 | {% endautoescape %} | |
19 | {% with image.get_random_associated_post as post %} |
|
19 | {% with image.get_random_associated_post as post %} | |
20 |
|
|
20 | {{ post.get_link_view|safe }} | |
21 | <div> |
|
21 | <div> | |
22 | {% for tag in post.get_thread.get_required_tags.all %} |
|
22 | {% for tag in post.get_thread.get_required_tags.all %} | |
23 | {% autoescape off %} |
|
23 | {{ tag.get_view|safe }}{% if not forloop.last %},{% endif %} | |
24 | {{ tag.get_view }}{% if not forloop.last %},{% endif %} |
|
|||
25 | {% endautoescape %} |
|
|||
26 | {% endfor %} |
|
24 | {% endfor %} | |
27 | </div> |
|
25 | </div> | |
28 | {% endwith %} |
|
26 | {% endwith %} | |
29 | </div> |
|
27 | </div> | |
30 | {% if forloop.counter|divisibleby:"3" %} |
|
28 | {% if forloop.counter|divisibleby:"3" %} | |
31 | </div> |
|
29 | </div> | |
32 | <div> |
|
30 | <div> | |
33 | {% endif %} |
|
31 | {% endif %} | |
34 | {% endfor %} |
|
32 | {% endfor %} | |
35 | </div> |
|
33 | </div> | |
36 | </div> |
|
34 | </div> | |
37 | {% endif %} |
|
35 | {% endif %} | |
38 |
|
36 | |||
39 | {% endblock %} |
|
37 | {% endblock %} |
General Comments 0
You need to be logged in to leave comments.
Login now