##// END OF EJS Templates
Updates to the active threads catalog in the landing
neko259 -
r1795:022120a9 default
parent child Browse files
Show More
@@ -184,12 +184,16 b' textarea, input {'
184 }
184 }
185
185
186 .landing-threads {
186 .landing-threads {
187 display: table;
188 margin-left: auto;
187 margin-left: auto;
189 margin-right: auto;
188 margin-right: auto;
189 text-align: center;
190 display: flex;
191 flex-wrap: wrap;
192 justify-content: space-around;
190 }
193 }
191
194
192 .landing-threads > .thread-short {
195 .landing-threads > .thread-short {
193 display: inline-block;
196 display: inline-block;
197 width: 240px;
194 }
198 }
195
199
@@ -25,24 +25,24 b''
25 {{ section_str|safe }}
25 {{ section_str|safe }}
26 </div>
26 </div>
27 <br />
27 <br />
28 <div class="landing-threads">
29 {% if latest_threads %}
28 {% if latest_threads %}
30 {% trans "Active threads:" %}<br />
29 <div>{% trans "Active threads:" %}</div>
30 <div class="landing-threads">
31 {% for op in latest_threads %}
31 {% for op in latest_threads %}
32 <div class="thread-short gallery_image">
32 <div class="thread-short gallery_image">
33 {% for attachment in op.attachments.all %}
33 {{ op.attachments.first.get_view|safe }}
34 {{ attachment.get_view|safe }}
34 {% with title=op.get_title_or_text %}
35 {% endfor %}
35 {% if title %}
36 {{ op.get_title_or_text }}
36 <div>{{ title }}</div>
37 <br />
37 {% endif %}
38 {{ op.thread.get_sections_str|safe }}
38 {% endwith %}
39 <br />
39 <div>{{ op.thread.get_sections_str|safe }}</div>
40 {{ op.get_link_view|safe }} +{{ op.today_post_count }}
40 <div>{{ op.get_link_view|safe }} +{{ op.today_post_count }}</div>
41 </div>
41 </div>
42 {% endfor %}
42 {% endfor %}
43 </div>
43 {% else %}
44 {% else %}
44 {% trans "No active threads today." %}
45 <div>{% trans "No active threads today." %}</div>
45 {% endif %}
46 {% endif %}
46 </div>
47 </div>
47 </div>
48 {% endblock %}
48 {% endblock %}
General Comments 0
You need to be logged in to leave comments. Login now