mirror of
https://gitlab.com/tildes/tildes.git
synced 2026-04-17 14:59:11 +02:00
Split subgroup links in comments page header
This commit is contained in:
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user