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 |
|
|
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 |
{ |
|
33 | {{ op.attachments.first.get_view|safe }} | |
34 |
|
|
34 | {% with title=op.get_title_or_text %} | |
35 |
|
|
35 | {% if title %} | |
36 |
{{ |
|
36 | <div>{{ title }}</div> | |
37 |
|
|
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