From b82cacc665466ab61cf6dd18e709d6ea270bea3d Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Fri, 13 Jul 2018 13:26:08 +0200 Subject: [PATCH] =?UTF-8?q?Make=20locked=20profiles=20display=20a=20lock?= =?UTF-8?q?=20icon=20instead=20of=20the=20text=20=E2=80=9Clocked=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This involves adding [ForkAwesome](https://forkawesome.github.io/) to the dependencies, even though it is pulled in via a CDN. --- calsocial/static/css/style.css | 6 ++++++ calsocial/templates/base.html | 2 ++ calsocial/templates/profile-details.html | 3 ++- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/calsocial/static/css/style.css b/calsocial/static/css/style.css index 3a40d93..712140d 100644 --- a/calsocial/static/css/style.css +++ b/calsocial/static/css/style.css @@ -8,3 +8,9 @@ footer { border-top: 1px dotted black; padding-top: 1em; } + +@media not speech { + .sr-only { + display: none; + } +} diff --git a/calsocial/templates/base.html b/calsocial/templates/base.html index 2235ab4..a8427c3 100644 --- a/calsocial/templates/base.html +++ b/calsocial/templates/base.html @@ -8,6 +8,8 @@ + + diff --git a/calsocial/templates/profile-details.html b/calsocial/templates/profile-details.html index 446c4d9..7c1fe51 100644 --- a/calsocial/templates/profile-details.html +++ b/calsocial/templates/profile-details.html @@ -3,7 +3,8 @@ {% block content %}

{% if profile.locked %} - [locked] + + {% trans %}locked profile{% endtrans %} {% endif %} {{ profile.display_name }} @{{ profile.user.username}}