maloja/maloja/web/jinja/top_tracks.jinja

32 lines
816 B
Plaintext
Raw Normal View History

2020-08-27 23:26:51 +03:00
{% extends "abstracts/base.jinja" %}
{% block title %}Maloja - #1 Tracks{% endblock %}
2023-03-28 22:00:39 +03:00
{% import 'snippets/filterdescription.jinja' as filterdesc %}
2020-08-27 23:26:51 +03:00
<!-- find representative -->
2022-02-26 23:30:06 +03:00
{% set entries = dbc.get_top_tracks(filterkeys,limitkeys,delimitkeys) %}
2020-08-27 23:26:51 +03:00
{% set repr = entries | find_representative('track','scrobbles') %}
{% set img = "/favicon.png" if repr is none else images.get_track_image(repr.track) %}
2020-08-27 23:26:51 +03:00
{% block content %}
<table class="top_info">
<tr>
<td class="image">
<div style="background-image:url('{{ img }}')"></div>
</td>
<td class="text">
<h1>#1 Tracks</h1><br/>
2023-03-28 22:00:39 +03:00
{{ filterdesc.desc(filterkeys,limitkeys) }}
2020-08-27 23:26:51 +03:00
<br/><br/>
{% include 'snippets/timeselection.jinja' %}
2020-08-27 23:26:51 +03:00
</td>
</tr>
</table>
{% include 'partials/top_tracks.jinja' %}
2020-08-27 23:26:51 +03:00
{% endblock %}