forked from mirrors/bookwyrm
f77088b964
Replace all classes `hidden` with `is-hidden` in templates, CSS and JS.
12 lines
555 B
HTML
12 lines
555 B
HTML
{% load i18n %}
|
|
<div class="control{% if not parent_status.content_warning and not draft.content_warning %} is-hidden{% endif %}" id="spoilers-{{ uuid }}">
|
|
<label class="is-sr-only" for="id_content_warning-{{ uuid }}">{% trans "Spoiler alert:" %}</label>
|
|
<input
|
|
type="text"
|
|
name="content_warning"
|
|
maxlength="255"
|
|
class="input"
|
|
id="id_content_warning-{{ uuid }}"
|
|
placeholder="{% trans 'Spoilers ahead!' %}"
|
|
value="{% firstof draft.content_warning parent_status.content_warning '' %}">
|
|
</div>
|