moviewyrm/bookwyrm/templates/snippets/username.html

15 lines
338 B
HTML
Raw Normal View History

{% spaceless %}
2020-12-13 02:25:04 +00:00
{% load bookwyrm_tags %}
<{% if anchor %}a href="{{ user.local_path }}"{% else %}span{% endif %}
class="user ml-1"
>
{{ user.name|default:user|username }}
</a>
{% if possessive %}'s{% endif %}
{% if show_full and user.name or show_full and user.localname %}
({{ user.username }})
{% endif %}
{% endspaceless %}