cover: Udpate logged out home and discover.

This commit is contained in:
Fabien Basmaison
2021-04-27 16:27:39 +02:00
parent 8ddc292ee6
commit d8b6676976
3 changed files with 53 additions and 7 deletions

View File

@ -4,16 +4,18 @@
{% if book %}
{% with book=book %}
<div class="columns">
<div class="column">
<div class="columns is-gapless">
<div class="column is-5-tablet is-cover">
<a
class="align to-b to-l"
href="{{ book.local_path }}"
>{% include 'snippets/book_cover.html' %}</a>
>{% include 'snippets/book_cover.html' with cover_class='is-w-l-mobile is-w-auto-tablet' %}</a>
{% include 'snippets/stars.html' with rating=book|rating:request.user %}
</div>
<div class="column">
<div class="column mt-3-mobile ml-3-tablet">
<h3 class="title is-5">
<a href="/book/{{ book.id }}">{{ book.title }}</a>
</h3>

View File

@ -4,9 +4,9 @@
{% if book %}
{% with book=book %}
<a
href="{{ book.local_path }}"
>{% include 'snippets/book_cover.html' with cover_class='is-h-s' %}</a>
<a href="{{ book.local_path }}">
{% include 'snippets/book_cover.html' with cover_class='is-w-l-mobile is-h-l-tablet is-w-auto align to-b to-l' %}
</a>
{% include 'snippets/stars.html' with rating=book|rating:request.user %}