mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-27 12:01:14 +00:00
Fixes content warnings on replies
This commit is contained in:
parent
7901da3b74
commit
cdab2cbf2c
1 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
<div
|
<div
|
||||||
class="field{% if not parent_status.content_warning and not draft.content_warning %} is-hidden{% endif %}"
|
class="field{% if not reply_parent.content_warning and not draft.content_warning %} is-hidden{% endif %}"
|
||||||
id="spoilers_{{ uuid }}{{ local_uuid }}"
|
id="spoilers_{{ uuid }}{{ local_uuid }}"
|
||||||
>
|
>
|
||||||
<label
|
<label
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
class="input"
|
class="input"
|
||||||
id="id_content_warning_{{ uuid }}{{ local_uuid }}"
|
id="id_content_warning_{{ uuid }}{{ local_uuid }}"
|
||||||
placeholder="{% trans 'Spoilers ahead!' %}"
|
placeholder="{% trans 'Spoilers ahead!' %}"
|
||||||
value="{% firstof draft.content_warning parent_status.content_warning '' %}"
|
value="{% firstof draft.content_warning reply_parent.content_warning '' %}"
|
||||||
data-cache-draft="id_content_warning_{{ book.id }}_{{ type }}"
|
data-cache-draft="id_content_warning_{{ book.id }}_{{ type }}"
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue