forked from mirrors/bookwyrm
Uses new button patttern for content warnings
This commit is contained in:
parent
73c1b5a1ff
commit
8576bf8ada
1 changed files with 5 additions and 9 deletions
|
@ -10,19 +10,15 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if status.content_warning %}
|
{% if status.content_warning %}
|
||||||
<div class="toggle-content">
|
<div>
|
||||||
<p>{{ status.content_warning }}</p>
|
<p>{{ status.content_warning }}</p>
|
||||||
<input class="toggle-control" type="radio" name="toggle-status-cw-{{ status.id }}" id="hide-status-cw-{{ status.id }}" checked>
|
{% include 'snippets/toggle/open_button.html' with text="show more" class="is-small" controls_text="show-status-cw" controls_uid=status.id %}
|
||||||
<div class="toggle-content hidden">
|
|
||||||
{% include 'snippets/toggle/toggle_button.html' with text="Show More" small=True controls_text="show-status-cw" controls_uid=status.id %}
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<input class="toggle-control" type="radio" name="toggle-status-cw-{{ status.id }}" id="show-status-cw-{{ status.id }}">
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<div{% if status.content_warning %} class="toggle-content hidden"{% endif %}>
|
|
||||||
|
<div{% if status.content_warning %} class="hidden" id="show-status-cw-{{ status.id }}"{% endif %}>
|
||||||
{% if status.content_warning %}
|
{% if status.content_warning %}
|
||||||
{% include 'snippets/toggle/toggle_button.html' with text="Show Less" small=True controls_text="hide-status-cw" controls_uid=status.id %}
|
{% include 'snippets/toggle/close_button.html' with text="show less" class="is-small" controls_text="show-status-cw" controls_uid=status.id %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if status.quote %}
|
{% if status.quote %}
|
||||||
|
|
Loading…
Reference in a new issue