mirror of
https://github.com/krateng/maloja.git
synced 2025-04-15 08:20:32 +03:00
added play number to each type of tile
This commit is contained in:
parent
02a848c747
commit
d5f73dd497
@ -16,10 +16,12 @@
|
||||
{% if entry is not none %}
|
||||
{% set album = entry.album %}
|
||||
{% set rank = entry.rank %}
|
||||
{% set scrobbles = entry.scrobbles %}
|
||||
<div class="tile">
|
||||
<a href="{{ links.url(album) }}">
|
||||
<div class="lazy" data-bg="{{ images.get_album_image(album) }}"'>
|
||||
<span class='stats'>#{{ rank }}</span> <span>{{ album.albumtitle }}</span>
|
||||
<p class="scrobbles"><span>{{ scrobbles }} {{ 'play' if scrobbles == 1 else 'plays' }}</span> </p>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
|
@ -16,10 +16,12 @@
|
||||
{% if entry is not none %}
|
||||
{% set artist = entry.artist %}
|
||||
{% set rank = entry.rank %}
|
||||
{% set scrobbles = entry.scrobbles %}
|
||||
<div class="tile">
|
||||
<a href="{{ links.url(artist) }}">
|
||||
<div class="lazy" data-bg="{{ images.get_artist_image(artist) }}"'>
|
||||
<span class='stats'>#{{ rank }}</span> <span>{{ artist }}</span>
|
||||
<span class='stats'>#{{ rank }}</span> <span>{{ artist }}</span>
|
||||
<p class="scrobbles"><span>{{ scrobbles }} {{ 'play' if scrobbles == 1 else 'plays' }}</span> </p>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
|
@ -16,10 +16,12 @@
|
||||
{% if entry is not none %}
|
||||
{% set track = entry.track %}
|
||||
{% set rank = entry.rank %}
|
||||
{% set scrobbles = entry.scrobbles %}
|
||||
<div class="tile">
|
||||
<a href="{{ links.url(track) }}">
|
||||
<div class="lazy" data-bg="{{ images.get_track_image(track) }}"'>
|
||||
<span class='stats'>#{{ rank }}</span> <span>{{ track.title }}</span>
|
||||
<p class="scrobbles"><span>{{ scrobbles }} {{ 'play' if scrobbles == 1 else 'plays' }}</span> </p>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
|
@ -1069,6 +1069,12 @@ div.tiles span {
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
div.tiles p.scrobbles {
|
||||
margin: 0;
|
||||
top:100%;
|
||||
position: sticky;
|
||||
}
|
||||
|
||||
div.tiles a:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user