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:
Gergely Polonkai 2018-07-13 13:26:08 +02:00
parent d06cfaa02e
commit b82cacc665
3 changed files with 10 additions and 1 deletions

View File

@ -8,3 +8,9 @@ footer {
border-top: 1px dotted black;
padding-top: 1em;
}
@media not speech {
.sr-only {
display: none;
}
}

View File

@ -8,6 +8,8 @@
<link rel="icon" type="image/png" sizes="32x32" href="{{ url_for('static', filename='images/calendar-social-icon-96.png') }}">
<link rel="icon" type="image/png" sizes="32x32" href="{{ url_for('static', filename='images/calendar-social-icon-192.png') }}">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/fork-awesome@1.1.0/css/fork-awesome.min.css" integrity="sha256-sX8HLspqYoXVPetzJRE4wPhIhDBu2NB0kYpufzkQSms=" crossorigin="anonymous">
<link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}" type="text/css">
<meta charset="utf-8">

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>