Merge pull request #493 from mouse-reeve/bidirectional-text

Support bidirectional text in status content
This commit is contained in:
Mouse Reeve 2021-01-06 12:20:33 -08:00 committed by GitHub
commit b046547a6e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View file

@ -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> &mdash; {% include 'snippets/book_titleby.html' with book=status.book %}</p> <p> &mdash; {% include 'snippets/book_titleby.html' with book=status.book %}</p>
</div> </div>

View file

@ -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 %}