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