bookwyrm-mastodon/bookwyrm/templates/snippets/privacy_select.html

25 lines
1.0 KiB
HTML
Raw Normal View History

2021-02-27 21:48:10 -05:00
{% load i18n %}
2021-05-11 17:41:28 -04:00
{% load utilities %}
2021-01-18 12:57:44 -05:00
<div class="select {{ class }}">
2020-11-09 14:43:12 -05:00
{% with 0|uuid as uuid %}
2020-11-09 15:40:22 -05:00
{% if not no_label %}
2021-02-27 21:48:10 -05:00
<label class="is-sr-only" for="privacy-{{ uuid }}">{% trans "Post privacy" %}</label>
2020-11-09 15:40:22 -05:00
{% endif %}
2020-11-09 14:43:12 -05:00
<select name="privacy" id="privacy-{{ uuid }}">
<option value="public" {% if user.default_post_privacy == 'public' or current == 'public' %}selected{% endif %}>
2021-02-27 21:48:10 -05:00
{% trans "Public" %}
2020-11-10 23:11:21 -05:00
</option>
<option value="unlisted" {% if user.default_post_privacy == 'unlisted' or current == 'unlisted' %}selected{% endif %}>
2021-02-27 21:48:10 -05:00
{% trans "Unlisted" %}
2020-11-10 23:11:21 -05:00
</option>
<option value="followers" {% if user.default_post_privacy == 'followers' or current == 'followers' %}selected{% endif %}>
2021-02-27 21:48:10 -05:00
{% trans "Followers" %}
2020-11-10 23:11:21 -05:00
</option>
<option value="direct" {% if user.default_post_privacy == 'direct' or current == 'direct' %}selected{% endif %}>
2021-02-27 21:48:10 -05:00
{% trans "Private" %}
2020-11-10 23:11:21 -05:00
</option>
2020-11-06 12:07:15 -05:00
</select>
2020-11-09 14:43:12 -05:00
{% endwith %}
2020-11-06 12:07:15 -05:00
</div>