From e8b7f3247467cccaec54911de72c466d08c1f93d Mon Sep 17 00:00:00 2001 From: deing Date: Fri, 6 Sep 2019 16:47:33 +0200 Subject: [PATCH] Split group links in the topic view (fixes #450) --- tildes/tildes/templates/topic.jinja2 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tildes/tildes/templates/topic.jinja2 b/tildes/tildes/templates/topic.jinja2 index 467f339..7ed3755 100644 --- a/tildes/tildes/templates/topic.jinja2 +++ b/tildes/tildes/templates/topic.jinja2 @@ -26,7 +26,11 @@ {% endblock %} {% block header_context_link %} -~{{ topic.group.path }} + {# Split the link out for each "segment" of the group path #} + ~{{ topic.group.path[0:1] }} + {% for i in range(1, topic.group.path|length) %} + .{{ topic.group.path[i:i+1] }} + {% endfor %} {% endblock %} {% block content %}