diff --git a/boards/models/thread.py b/boards/models/thread.py --- a/boards/models/thread.py +++ b/boards/models/thread.py @@ -262,6 +262,9 @@ class Thread(models.Model): def get_required_tags(self): return self.get_tags().filter(required=True) + def get_sections_str(self): + return Tag.objects.get_tag_url_list(self.get_required_tags()) + def get_replies_newer(self, post_id): return self.get_replies().filter(id__gt=post_id) diff --git a/boards/templates/boards/landing.html b/boards/templates/boards/landing.html --- a/boards/templates/boards/landing.html +++ b/boards/templates/boards/landing.html @@ -19,12 +19,14 @@ {% endfor %} +
{{ section_str|safe }}
+
{% for op in latest_threads %} - {{ op.get_link_view|safe }} {{ op.get_title_or_text }}
+ {{ op.get_link_view|safe }} {{ op.get_title_or_text }} ({{ op.thread.get_sections_str|safe }})
{% endfor %}