Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
- <a class="level-item" href="/users/{{ page.author.uid }}">
+ <a class="level-item" href="{% if page.author %}/users/{{ page.author.uid }}{% else %}#{% end %}">
{{ _("Last changed by %(author)s, %(when)s") % {
{{ _("Last changed by %(author)s, %(when)s") % {
- "author" : page.author,
+ "author" : page.author or _("an unknown author"),
"when" : locale.format_date(page.timestamp, shorter=True),
} }}
</a>
"when" : locale.format_date(page.timestamp, shorter=True),
} }}
</a>