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

19 lines
588 B
HTML
Raw Normal View History

2020-11-11 00:18:48 +00:00
{% if item.privacy == 'public' %}
2021-01-14 22:13:23 +00:00
<span class="icon icon-globe" title="Public post">
2020-11-11 00:18:48 +00:00
<span class="is-sr-only">Public post</span>
</span>
{% elif item.privacy == 'unlisted' %}
2021-01-14 22:13:23 +00:00
<span class="icon icon-unlock" title="Unlisted post">
2020-11-11 00:18:48 +00:00
<span class="is-sr-only">Unlisted post</span>
</span>
{% elif item.privacy == 'followers' %}
2021-01-14 22:13:23 +00:00
<span class="icon icon-lock" title="Followers-only post">
2020-11-11 00:18:48 +00:00
<span class="is-sr-only">Followers-only post</span>
</span>
{% else %}
2021-01-14 22:13:23 +00:00
<span class="icon icon-envelope" title="Private post">
2020-11-11 00:18:48 +00:00
<span class="is-sr-only">Private post</span>
</span>
{% endif %}