fix: progress bar display
This commit is contained in:
parent
7d497f2b5e
commit
922230ac24
3 changed files with 5 additions and 5 deletions
|
@ -41,10 +41,10 @@ schema: book
|
|||
{% if book.status == 'finished' %}
|
||||
<p class="sub-meta">Finished on: {{ book.date | date: "%B %e, %Y" }}</p>
|
||||
{% endif %}
|
||||
{% unless book.status == 'finished' %}
|
||||
{% if book.status == 'started' %}
|
||||
{%- assign percentage = book.progress | append: '%' -%}
|
||||
{% render "partials/media/progress-bar.liquid", percentage:percentage %}
|
||||
{% endunless %}
|
||||
{% endif %}
|
||||
<p class="sub-meta"><a href="https://openlibrary.org/isbn/{{ book.isbn }}" title="View {{ book.title | escape }} on Open Library">View on Open Library</a></p>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Reference in a new issue