Browse Source

Don't try to link "unknown user" to a user page

This should be done better in some way, but will work for now.
merge-requests/85/head
Deimos 5 years ago
parent
commit
31feae606a
  1. 6
      tildes/tildes/templates/macros/links.jinja2

6
tildes/tildes/templates/macros/links.jinja2

@ -2,7 +2,11 @@
{# SPDX-License-Identifier: AGPL-3.0-or-later #} {# SPDX-License-Identifier: AGPL-3.0-or-later #}
{% macro username_linked(username) -%} {% macro username_linked(username) -%}
<a href="/user/{{ username }}" class="link-user">{{ username }}</a>
{% if username != "unknown user" %}
<a href="/user/{{ username }}" class="link-user">{{ username }}</a>
{% else %}
{{ username }}
{% endif %}
{%- endmacro %} {%- endmacro %}
{% macro group_linked(group_path) -%} {% macro group_linked(group_path) -%}

Loading…
Cancel
Save