mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-30 05:21:08 +00:00
Resolve conflict between inherited privacy and default privacy
This commit is contained in:
parent
e486bcf2c8
commit
bd7bf4ee96
1 changed files with 5 additions and 4 deletions
|
@ -5,17 +5,18 @@
|
||||||
{% if not no_label %}
|
{% if not no_label %}
|
||||||
<label class="is-sr-only" for="privacy-{{ uuid }}">{% trans "Post privacy" %}</label>
|
<label class="is-sr-only" for="privacy-{{ uuid }}">{% trans "Post privacy" %}</label>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% firstof current user.default_post_privacy "public" as privacy %}
|
||||||
<select name="privacy" id="privacy-{{ uuid }}">
|
<select name="privacy" id="privacy-{{ uuid }}">
|
||||||
<option value="public" {% if user.default_post_privacy == 'public' or current == 'public' %}selected{% endif %}>
|
<option value="public" {% if privacy == 'public' %}selected{% endif %}>
|
||||||
{% trans "Public" %}
|
{% trans "Public" %}
|
||||||
</option>
|
</option>
|
||||||
<option value="unlisted" {% if user.default_post_privacy == 'unlisted' or current == 'unlisted' %}selected{% endif %}>
|
<option value="unlisted" {% if privacy == 'unlisted' %}selected{% endif %}>
|
||||||
{% trans "Unlisted" %}
|
{% trans "Unlisted" %}
|
||||||
</option>
|
</option>
|
||||||
<option value="followers" {% if user.default_post_privacy == 'followers' or current == 'followers' %}selected{% endif %}>
|
<option value="followers" {% if privacy == 'followers' %}selected{% endif %}>
|
||||||
{% trans "Followers" %}
|
{% trans "Followers" %}
|
||||||
</option>
|
</option>
|
||||||
<option value="direct" {% if user.default_post_privacy == 'direct' or current == 'direct' %}selected{% endif %}>
|
<option value="direct" {% if privacy == 'direct' %}selected{% endif %}>
|
||||||
{% trans "Private" %}
|
{% trans "Private" %}
|
||||||
</option>
|
</option>
|
||||||
</select>
|
</select>
|
||||||
|
|
Loading…
Reference in a new issue