maloja/maloja/web/jinja/charts_artists.jinja

53 lines
1.3 KiB
Plaintext
Raw Normal View History

2020-08-17 18:23:17 +03:00
{% extends "abstracts/base.jinja" %}
2020-08-21 19:20:51 +03:00
{% block title %}Maloja - Artist Charts{% endblock %}
2020-05-31 19:11:28 +03:00
2023-03-28 22:00:39 +03:00
{% import 'snippets/filterdescription.jinja' as filterdesc %}
2020-05-31 19:11:28 +03:00
{% block scripts %}
<script src="/datechange.js" async></script>
{% endblock %}
2022-02-26 23:30:06 +03:00
{% set charts = dbc.get_charts_artists(filterkeys,limitkeys) %}
2020-08-22 22:51:39 +03:00
{% set pages = math.ceil(charts.__len__() / amountkeys.perpage) %}
2020-08-21 19:20:51 +03:00
{% if charts[0] is defined %}
{% set topartist = charts[0].artist %}
{% set img = images.get_artist_image(topartist) %}
2020-08-21 19:20:51 +03:00
{% else %}
{% set img = "/favicon.png" %}
{% endif %}
2020-05-31 19:11:28 +03:00
{% block content %}
<table class="top_info">
<tr>
<td class="image">
<div style="background-image:url('{{ img }}')"></div>
</td>
<td class="text">
<h1>Artist Charts</h1><a href="/top_artists"><span>View #1 Artists</span></a><br/>
2023-03-28 22:00:39 +03:00
{{ filterdesc.desc(filterkeys,limitkeys) }}
2020-05-31 19:11:28 +03:00
<br/><br/>
{% with delimitkeys = {} %}
{% include 'snippets/timeselection.jinja' %}
{% endwith %}
2020-05-31 19:11:28 +03:00
</td>
</tr>
</table>
2021-12-20 00:25:01 +03:00
{% if settings['CHARTS_DISPLAY_TILES'] %}
2020-09-02 15:03:03 +03:00
{% include 'partials/charts_artists_tiles.jinja' %}
2020-08-27 18:26:56 +03:00
<br/><br/>
{% endif %}
2020-05-31 19:11:28 +03:00
2020-09-03 16:43:18 +03:00
{% with compare=true %}
{% include 'partials/charts_artists.jinja' %}
{% endwith %}
2020-05-31 19:11:28 +03:00
2020-08-22 22:51:39 +03:00
{% import 'snippets/pagination.jinja' as pagination %}
{{ pagination.pagination(filterkeys,limitkeys,delimitkeys,amountkeys,pages) }}
2020-05-31 19:11:28 +03:00
{% endblock %}