Skip to content

Commit

Permalink
Add link on cover image on list
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioMendolia committed Sep 6, 2023
1 parent f203b36 commit 3c49f9c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion templates/book/_list.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,14 @@
{% for book in pagination %}
<tr>
<td>
<a href="{{ path('app_book', {'book':book.id, 'slug':book.slug}) }}">

{% if book.imageFilename is not null %}
<img class="w-100" src="{{ asset('covers/'~book.imagePath~book.imageFilename)|imagine_filter('thumb') }}" />
<img class="w-100" src="{{ asset('covers/'~book.imagePath~book.imageFilename)|imagine_filter('thumb') }}" />
{% else %}
<img class="w-100" src="{{ asset('images/blank.jpg')|imagine_filter('thumb') }}" />
{% endif %}
</a>
</td>
<td colspan="4">
<div>
Expand Down

0 comments on commit 3c49f9c

Please sign in to comment.