moviewyrm/bookwyrm/templates/snippets/privacy-icons.html

20 lines
662 B
HTML
Raw Normal View History

2021-02-28 02:48:10 +00:00
{% load i18n %}
2020-11-11 00:18:48 +00:00
{% if item.privacy == 'public' %}
2021-02-28 02:48:10 +00:00
<span class="icon icon-globe" title="{% trans 'Public' %}">
<span class="is-sr-only">{% trans "Public" %}</span>
2020-11-11 00:18:48 +00:00
</span>
{% elif item.privacy == 'unlisted' %}
2021-02-28 02:48:10 +00:00
<span class="icon icon-unlock" title="{% trans 'Unlisted' %}">
<span class="is-sr-only">{% trans "Unlisted" %}</span>
2020-11-11 00:18:48 +00:00
</span>
{% elif item.privacy == 'followers' %}
<span class="icon icon-lock" title="Followers-only">
2021-02-28 02:48:10 +00:00
<span class="is-sr-only">{% trans "Followers-only" %}</span>
2020-11-11 00:18:48 +00:00
</span>
{% else %}
2021-02-28 02:48:10 +00:00
<span class="icon icon-envelope" title="{% trans 'Private' %}">
<span class="is-sr-only">{% trans "Private" %}</span>
2020-11-11 00:18:48 +00:00
</span>
{% endif %}