Skip to content

Commit

Permalink
Tweak reading list view
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioMendolia committed Dec 2, 2024
1 parent cdeadbc commit 014b933
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions templates/default/dashboard.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
{% include themedTemplate('book/_teaser.html.twig') with {book: bookInteraction.book} %}
</div>
<div class="col-3">
<h5>{{ bookInteraction.book.serie }} {{ bookInteraction.book.serieIndex }} {{ bookInteraction.book.title }}</h5>
<h5>{{ bookInteraction.book.title }}</h5>
<h6>{{ bookInteraction.book.serie }} #{{ bookInteraction.book.serieIndex }}</h6>
<div class="progress">
<div class="progress-bar" style="width: {{ (bookInteraction.readPages/bookInteraction.book.pageNumber) *100 }}%">
{{ bookInteraction.readPages }}/{{ bookInteraction.book.pageNumber }}
Expand All @@ -44,7 +45,7 @@
<div class="row mb-4">
{% if readlist|length>0 %}
{% for bookInteraction in readlist %}
<div class="col-4 col-md-{{ readlist|length>6?'1':'2' }}">
<div class="col-4 col-md-2">
{% include themedTemplate('book/_teaser.html.twig') with {book: bookInteraction.book} %}
</div>
{% endfor %}
Expand Down

0 comments on commit 014b933

Please sign in to comment.