mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-23 00:26:33 +00:00
Support bidirectional text in status content
This commit is contained in:
parent
e7e21c194e
commit
054f69993b
2 changed files with 5 additions and 5 deletions
|
@ -3,7 +3,7 @@
|
||||||
{% if status.status_type == 'Review' %}
|
{% if status.status_type == 'Review' %}
|
||||||
<div>
|
<div>
|
||||||
<h3 class="title is-5 has-subtitle">
|
<h3 class="title is-5 has-subtitle">
|
||||||
{% if status.name %}{{ status.name }}<br>{% endif %}
|
{% if status.name %}<span dir="auto">{{ status.name }}</span><br>{% endif %}
|
||||||
</h3>
|
</h3>
|
||||||
<p class="subtitle">{% include 'snippets/stars.html' with rating=status.rating %}</p>
|
<p class="subtitle">{% include 'snippets/stars.html' with rating=status.rating %}</p>
|
||||||
</div>
|
</div>
|
||||||
|
@ -27,7 +27,7 @@
|
||||||
|
|
||||||
{% if status.quote %}
|
{% if status.quote %}
|
||||||
<div class="quote block">
|
<div class="quote block">
|
||||||
<blockquote>{{ status.quote | safe }}</blockquote>
|
<blockquote dir="auto">{{ status.quote | safe }}</blockquote>
|
||||||
|
|
||||||
<p> — {% include 'snippets/book_titleby.html' with book=status.book %}</p>
|
<p> — {% include 'snippets/book_titleby.html' with book=status.book %}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -6,18 +6,18 @@
|
||||||
{% if trimmed != full %}
|
{% if trimmed != full %}
|
||||||
<div>
|
<div>
|
||||||
<input type="radio" name="show-hide-{{ uuid }}" id="show-{{ uuid }}" class="toggle-control" checked>
|
<input type="radio" name="show-hide-{{ uuid }}" id="show-{{ uuid }}" class="toggle-control" checked>
|
||||||
<blockquote class="content toggle-content hidden">{{ trimmed | to_markdown | safe }}
|
<blockquote class="content toggle-content hidden"><span dir="auto">{{ trimmed | to_markdown | safe }}</span>
|
||||||
<label class="button is-small" for="hide-{{ uuid }}"><div role="button" tabindex="0">show more</div></label>
|
<label class="button is-small" for="hide-{{ uuid }}"><div role="button" tabindex="0">show more</div></label>
|
||||||
</blockquote>
|
</blockquote>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<input type="radio" name="show-hide-{{ uuid }}" id="hide-{{ uuid }}" class="toggle-control">
|
<input type="radio" name="show-hide-{{ uuid }}" id="hide-{{ uuid }}" class="toggle-control">
|
||||||
<blockquote class="content toggle-content hidden">{{ full | to_markdown | safe }}
|
<blockquote class="content toggle-content hidden"><span dir="auto">{{ full | to_markdown | safe }}</span>
|
||||||
<label class="button is-small" for="show-{{ uuid }}"><div role="button" tabindex="0">show less</div></label>
|
<label class="button is-small" for="show-{{ uuid }}"><div role="button" tabindex="0">show less</div></label>
|
||||||
</blockquote>
|
</blockquote>
|
||||||
</div>
|
</div>
|
||||||
{% else %}
|
{% else %}
|
||||||
<blockquote class="content">{{ full | to_markdown | safe }}</blockquote>
|
<blockquote class="content"><span dir="auto">{{ full | to_markdown | safe }}</span></blockquote>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue