Highlight current module in the sidebar.

This commit is contained in:
KtorZ
2022-12-17 12:13:51 +01:00
parent a34d7d4dbb
commit 579030db36
3 changed files with 33 additions and 1 deletions

View File

@@ -187,7 +187,13 @@
{% endif %}
<ul>
{% for module in modules %}
<li><a href="{{ breadcrumbs }}/{{ module.path }}">{{ module.name }}</a></li>
<li><a href="{{ breadcrumbs }}/{{ module.path }}">
{% if self.is_current_module(module) %}
<strong>{{ module.name }}</strong>
{% else %}
{{ module.name }}
{% endif %}
</a></li>
{% endfor %}
</ul>