1
0
Fork 0

releases: make cover clickable

This commit is contained in:
dece 2021-08-23 16:50:44 +02:00
parent a77f2a86bb
commit f21b23e849
2 changed files with 3 additions and 1 deletions

View file

@ -20,6 +20,7 @@
flex-shrink: 0; flex-shrink: 0;
width: 300px; width: 300px;
background-size: cover; background-size: cover;
cursor: pointer;
} }
.release .infos { .release .infos {

View file

@ -12,7 +12,8 @@
<div class="release"> <div class="release">
<div <div
class="cover" class="cover"
style="background-image: url('{{ MEDIA_URL }}{{ release.cover }}')"> style="background-image: url('{{ MEDIA_URL }}{{ release.cover }}')"
onclick='window.location="{% url 'release' release.tag|lower %}"'>
</div> </div>
<div class="infos"> <div class="infos">