Make locked profiles display a lock icon instead of the text “locked”

This involves adding [ForkAwesome](https://forkawesome.github.io/) to the dependencies, even
though it is pulled in via a CDN.
This commit is contained in:
2018-07-13 13:26:08 +02:00
parent d06cfaa02e
commit b82cacc665
3 changed files with 10 additions and 1 deletions

View File

@@ -3,7 +3,8 @@
{% block content %}
<h1>
{% if profile.locked %}
[locked]
<i class="fa fa-lock" aria-hidden="true" title="{% trans %}locked profile{% endtrans %}"></i>
<span class="sr-only">{% trans %}locked profile{% endtrans %}</span>
{% endif %}
{{ profile.display_name }}
<small>@{{ profile.user.username}}</small>