forked from mirrors/bookwyrm
25 lines
936 B
HTML
25 lines
936 B
HTML
{% load i18n %}
|
|
{% load utilities %}
|
|
<div class="select {{ class }}">
|
|
{% with 0|uuid as uuid %}
|
|
{% if not no_label %}
|
|
<label class="is-sr-only" for="privacy-{{ uuid }}">{% trans "Post privacy" %}</label>
|
|
{% endif %}
|
|
{% firstof current user.default_post_privacy "public" as privacy %}
|
|
<select name="privacy" id="privacy-{{ uuid }}">
|
|
<option value="public" {% if privacy == 'public' %}selected{% endif %}>
|
|
{% trans "Public" %}
|
|
</option>
|
|
<option value="unlisted" {% if privacy == 'unlisted' %}selected{% endif %}>
|
|
{% trans "Unlisted" %}
|
|
</option>
|
|
<option value="followers" {% if privacy == 'followers' %}selected{% endif %}>
|
|
{% trans "Followers" %}
|
|
</option>
|
|
<option value="direct" {% if privacy == 'direct' %}selected{% endif %}>
|
|
{% trans "Private" %}
|
|
</option>
|
|
</select>
|
|
{% endwith %}
|
|
</div>
|
|
|