Browse Source

Split subgroup links in comments page header

merge-requests/85/head
deing 5 years ago
committed by Deimos
parent
commit
a2e675cf31
  1. 6
      tildes/tildes/templates/topic.jinja2

6
tildes/tildes/templates/topic.jinja2

@ -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 %}

Loading…
Cancel
Save