2020-12-13 02:25:04 +00:00
|
|
|
{% load bookwyrm_tags %}
|
2020-11-12 19:40:20 +00:00
|
|
|
{% with 0|uuid as uuid %}
|
|
|
|
{% if full %}
|
|
|
|
|
2020-12-13 03:34:33 +00:00
|
|
|
{% with full|truncatewords_html:60 as trimmed %}
|
2020-11-12 19:40:20 +00:00
|
|
|
{% if trimmed != full %}
|
|
|
|
<div>
|
|
|
|
<input type="radio" name="show-hide-{{ uuid }}" id="show-{{ uuid }}" class="toggle-control" checked>
|
2020-12-20 20:24:17 +00:00
|
|
|
<blockquote class="content toggle-content hidden">{{ trimmed | to_markdown | safe }}
|
2020-11-12 19:40:20 +00:00
|
|
|
<label class="button is-small" for="hide-{{ uuid }}"><div role="button" tabindex="0">show more</div></label>
|
|
|
|
</blockquote>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<input type="radio" name="show-hide-{{ uuid }}" id="hide-{{ uuid }}" class="toggle-control">
|
2020-12-20 20:24:17 +00:00
|
|
|
<blockquote class="content toggle-content hidden">{{ full | to_markdown | safe }}
|
2020-11-12 19:40:20 +00:00
|
|
|
<label class="button is-small" for="show-{{ uuid }}"><div role="button" tabindex="0">show less</div></label>
|
|
|
|
</blockquote>
|
|
|
|
</div>
|
|
|
|
{% else %}
|
2020-12-20 20:24:17 +00:00
|
|
|
<blockquote class="content">{{ full | to_markdown | safe }}</blockquote>
|
2020-11-12 19:40:20 +00:00
|
|
|
{% endif %}
|
|
|
|
{% endwith %}
|
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
{% endwith %}
|
|
|
|
|