forked from mirrors/bookwyrm
Don't show "None" in book description
This commit is contained in:
parent
a2692f92d2
commit
65371d6904
1 changed files with 2 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
||||||
{% load fr_display %}
|
{% load fr_display %}
|
||||||
{% with book|book_description as full %}
|
{% with book|book_description as full %}
|
||||||
|
{% if full %}
|
||||||
{% with full|text_overflow as trimmed %}
|
{% with full|text_overflow as trimmed %}
|
||||||
{% if trimmed != full %}
|
{% if trimmed != full %}
|
||||||
<div>
|
<div>
|
||||||
|
@ -17,4 +18,5 @@
|
||||||
</blockquote>
|
</blockquote>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
|
{% endif %}
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
|
|
Loading…
Reference in a new issue