Show More
@@ -1,48 +1,45 b'' | |||
|
1 | 1 | {% extends "boards/base.html" %} |
|
2 | 2 | |
|
3 | 3 | {% load i18n %} |
|
4 | 4 | {% load static %} |
|
5 | 5 | {% load board %} |
|
6 | 6 | |
|
7 | 7 | {% block head %} |
|
8 | 8 | <title>{{ site_name }}</title> |
|
9 | 9 | {% endblock %} |
|
10 | 10 | |
|
11 | 11 | {% block content %} |
|
12 | 12 | <div id="posts-table"> |
|
13 | 13 | <div class="landing-images"> |
|
14 | 14 | {% for image in images %} |
|
15 | 15 | <div class="gallery_image"> |
|
16 | 16 | {{ image.get_view|safe }} |
|
17 | 17 | {% with image.get_random_associated_post as post %} |
|
18 | 18 | {{ post.get_link_view|safe }} |
|
19 | 19 | {% endwith %} |
|
20 | 20 | </div> |
|
21 | 21 | {% endfor %} |
|
22 | 22 | </div> |
|
23 | 23 | <br /> |
|
24 | 24 | <div class="landing-tags"> |
|
25 | 25 | {{ section_str|safe }} |
|
26 | 26 | </div> |
|
27 | 27 | <br /> |
|
28 | 28 | {% if latest_threads %} |
|
29 | <div>{% trans "Active threads:" %}</div> | |
|
30 | 29 | <div class="landing-threads"> |
|
31 | 30 | {% for op in latest_threads %} |
|
32 | 31 | <div class="thread-short gallery_image"> |
|
33 | 32 | {{ op.attachments.first.get_view|safe }} |
|
34 | 33 | {% with title=op.get_title_or_text %} |
|
35 | 34 | {% if title %} |
|
36 | 35 | <div>{{ title }}</div> |
|
37 | 36 | {% endif %} |
|
38 | 37 | {% endwith %} |
|
39 | 38 | <div>{{ op.thread.get_sections_str|safe }}</div> |
|
40 | 39 | <div>{{ op.get_link_view|safe }} +{{ op.today_post_count }}</div> |
|
41 | 40 | </div> |
|
42 | 41 | {% endfor %} |
|
43 | 42 | </div> |
|
44 | {% else %} | |
|
45 | <div>{% trans "No active threads today." %}</div> | |
|
46 | 43 | {% endif %} |
|
47 | 44 | </div> |
|
48 | 45 | {% endblock %} |
General Comments 0
You need to be logged in to leave comments.
Login now