project-nav.html: fix link macro for jinja2 3.0.0

This commit is contained in:
Drew DeVault 2021-05-16 16:35:25 -04:00
parent 7822a639ec
commit 2ed2460598
1 changed files with 1 additions and 1 deletions

View File

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