Split subgroup links in comments page header

This commit is contained in:
deing
2019-09-06 16:47:33 +02:00
committed by Deimos
parent 9bd9e57922
commit a2e675cf31

View File

@@ -26,7 +26,11 @@
{% endblock %}
{% block header_context_link %}
<a class="site-header-context" href="/~{{ topic.group.path }}">~{{ topic.group.path }}</a>
{# Split the link out for each "segment" of the group path #}
<a class="site-header-context" href="/~{{ topic.group.path[0:1] }}">~{{ topic.group.path[0:1] }}</a>
{% for i in range(1, topic.group.path|length) %}
.<a class="site-header-context" href="/~{{ topic.group.path[0:i+1] }}">{{ topic.group.path[i:i+1] }}</a>
{% endfor %}
{% endblock %}
{% block content %}