From a2e675cf317bd37f05ff81e20c37e171d5b54282 Mon Sep 17 00:00:00 2001 From: deing Date: Fri, 6 Sep 2019 16:47:33 +0200 Subject: [PATCH] Split subgroup links in comments page header --- 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 %}