diff --git a/maloja/web/jinja/scrobbles.jinja b/maloja/web/jinja/scrobbles.jinja new file mode 100644 index 0000000..c5098a8 --- /dev/null +++ b/maloja/web/jinja/scrobbles.jinja @@ -0,0 +1,45 @@ +{% extends "abstracts/base.jinja" %} +{% block title %}Maloja - Scrobbles{% endblock %} + +{% set scrobbles = dbp.get_scrobbles(filterkeys,limitkeys,amountkeys) %} + +{% if filterkeys.get('track') is not none %} + {% set img = utilities.getTrackImage(artists=filterkeys.track.artists,title=filterkeys.track.title,fast=True) %} +{% elif filterkeys.get('artist') is not none %} + {% set img = utilities.getArtistImage(filterkeys.artist,fast=True) %} +{% elif scrobbles.__len__() > 0 %} + {% set img = utilities.getTrackImage(artists=scrobbles[0].artists,title=scrobbles[0].title,fast=True) %} +{% else %} + {% set img = "/favicon.png" %} +{% endif %} + +{% block content %} + + +
+ + | +
+ Scrobbles+ {% if filterkeys.get('artist') is not none %} + by {{ htmlgenerators.artistLink(filterkeys.get('artist')) }} + {% elif filterkeys.get('track') is not none %} + of {{ htmlgenerators.trackLink(filterkeys.get('track')) }} + by {{ htmlgenerators.artistLinks(filterkeys["track"]["artists"]) }} + {% endif %} + {{ limitkeys.timerange.desc(prefix=True) }} + {{ scrobbles.__len__() }} Scrobbles ++ {{ htmlmodules.module_filterselection(_urikeys) }} + + |
+