Browse Source

Split group links in the topic view (fixes #450)

merge-requests/82/head
deing 6 years ago
parent
commit
e8b7f32474
No known key found for this signature in database GPG Key ID: DA34C790D267C164
  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