mirror of https://git.sr.ht/~sircmpwn/hub.sr.ht
project-nav.html: fix link macro for jinja2 3.0.0
This commit is contained in:
parent
7822a639ec
commit
2ed2460598
|
@ -3,7 +3,7 @@
|
|||
href="{{url_for("users.summary_GET", username=owner.username)}}"
|
||||
>{{owner.canonical_name}}</a>/<wbr>{{project.name}}
|
||||
</h2>
|
||||
{% macro link(path, title, alternates, cls="") %}
|
||||
{% macro link(path, title, alternates=[], cls="") %}
|
||||
<a
|
||||
class="nav-link {% if view == title or view in alternates %}active{% endif %} {{cls}}"
|
||||
href="{{ path }}">{{ title }}</a>
|
||||
|
|
Loading…
Reference in New Issue