Show More
@@ -262,6 +262,9 b' class Thread(models.Model):' | |||||
262 | def get_required_tags(self): |
|
262 | def get_required_tags(self): | |
263 | return self.get_tags().filter(required=True) |
|
263 | return self.get_tags().filter(required=True) | |
264 |
|
264 | |||
|
265 | def get_sections_str(self): | |||
|
266 | return Tag.objects.get_tag_url_list(self.get_required_tags()) | |||
|
267 | ||||
265 | def get_replies_newer(self, post_id): |
|
268 | def get_replies_newer(self, post_id): | |
266 | return self.get_replies().filter(id__gt=post_id) |
|
269 | return self.get_replies().filter(id__gt=post_id) | |
267 |
|
270 |
@@ -19,12 +19,14 b'' | |||||
19 | </div> |
|
19 | </div> | |
20 | {% endfor %} |
|
20 | {% endfor %} | |
21 | </div> |
|
21 | </div> | |
|
22 | <br /> | |||
22 | <div class="landing-tags"> |
|
23 | <div class="landing-tags"> | |
23 | {{ section_str|safe }} |
|
24 | {{ section_str|safe }} | |
24 | </div> |
|
25 | </div> | |
|
26 | <br /> | |||
25 | <div class="landing-threads"> |
|
27 | <div class="landing-threads"> | |
26 | {% for op in latest_threads %} |
|
28 | {% for op in latest_threads %} | |
27 |
|
|
29 | {{ op.get_link_view|safe }} {{ op.get_title_or_text }} ({{ op.thread.get_sections_str|safe }})<br /> | |
28 | {% endfor %} |
|
30 | {% endfor %} | |
29 | </div> |
|
31 | </div> | |
30 | </div> |
|
32 | </div> |
General Comments 0
You need to be logged in to leave comments.
Login now