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 }}">
|
2021-09-29 18:58:37 -04:00
|
|
|
{% firstof privacy_uuid 0|uuid as uuid %}
|
2020-11-09 15:40:22 -05:00
|
|
|
{% if not no_label %}
|
2021-08-08 21:40:47 -04:00
|
|
|
<label class="is-sr-only" for="privacy_{{ uuid }}">{% trans "Post privacy" %}</label>
|
2020-11-09 15:40:22 -05:00
|
|
|
{% endif %}
|
2021-08-04 13:55:03 -04:00
|
|
|
{% firstof current user.default_post_privacy "public" as privacy %}
|
2021-08-08 21:40:47 -04:00
|
|
|
<select name="privacy" id="privacy_{{ uuid }}">
|
2021-08-04 13:55:03 -04:00
|
|
|
<option value="public" {% if privacy == 'public' %}selected{% endif %}>
|
2021-02-27 21:48:10 -05:00
|
|
|
{% trans "Public" %}
|
2020-11-10 23:11:21 -05:00
|
|
|
</option>
|
2021-08-04 13:55:03 -04:00
|
|
|
<option value="unlisted" {% if privacy == 'unlisted' %}selected{% endif %}>
|
2021-02-27 21:48:10 -05:00
|
|
|
{% trans "Unlisted" %}
|
2020-11-10 23:11:21 -05:00
|
|
|
</option>
|
2021-08-04 13:55:03 -04:00
|
|
|
<option value="followers" {% if privacy == 'followers' %}selected{% endif %}>
|
2021-02-27 21:48:10 -05:00
|
|
|
{% trans "Followers" %}
|
2020-11-10 23:11:21 -05:00
|
|
|
</option>
|
2021-08-04 13:55:03 -04:00
|
|
|
<option value="direct" {% if privacy == '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>
|
|
|
|
</div>
|
|
|
|
|