diff --git a/maloja/web/jinja/charts_albums.jinja b/maloja/web/jinja/charts_albums.jinja
index 7d2667a..c442df2 100644
--- a/maloja/web/jinja/charts_albums.jinja
+++ b/maloja/web/jinja/charts_albums.jinja
@@ -2,6 +2,7 @@
{% block title %}Maloja - Album Charts{% endblock %}
{% import 'snippets/links.jinja' as links %}
+{% import 'snippets/filterdescription.jinja' as filterdesc %}
{% block scripts %}
@@ -26,8 +27,7 @@
Album ChartsView #1 Albums
- {% if filterkeys.get('artist') is not none %}by {{ links.link(filterkeys.get('artist')) }}{% endif %}
- {{ limitkeys.timerange.desc(prefix=True) }}
+ {{ filterdesc.desc(filterkeys,limitkeys) }}
{% with delimitkeys = {} %}
{% include 'snippets/timeselection.jinja' %}
diff --git a/maloja/web/jinja/charts_artists.jinja b/maloja/web/jinja/charts_artists.jinja
index 87f51ff..627f38c 100644
--- a/maloja/web/jinja/charts_artists.jinja
+++ b/maloja/web/jinja/charts_artists.jinja
@@ -1,6 +1,8 @@
{% extends "abstracts/base.jinja" %}
{% block title %}Maloja - Artist Charts{% endblock %}
+{% import 'snippets/filterdescription.jinja' as filterdesc %}
+
{% block scripts %}
{% endblock %}
@@ -25,7 +27,7 @@
|
Artist ChartsView #1 Artists
- {{ limitkeys.timerange.desc(prefix=True) }}
+ {{ filterdesc.desc(filterkeys,limitkeys) }}
{% with delimitkeys = {} %}
{% include 'snippets/timeselection.jinja' %}
diff --git a/maloja/web/jinja/charts_tracks.jinja b/maloja/web/jinja/charts_tracks.jinja
index 17b2f20..d265c3a 100644
--- a/maloja/web/jinja/charts_tracks.jinja
+++ b/maloja/web/jinja/charts_tracks.jinja
@@ -2,6 +2,7 @@
{% block title %}Maloja - Track Charts{% endblock %}
{% import 'snippets/links.jinja' as links %}
+{% import 'snippets/filterdescription.jinja' as filterdesc %}
{% block scripts %}
@@ -26,8 +27,7 @@
|
Track ChartsView #1 Tracks
- {% if filterkeys.get('artist') is not none %}by {{ links.link(filterkeys.get('artist')) }}{% endif %}
- {{ limitkeys.timerange.desc(prefix=True) }}
+ {{ filterdesc.desc(filterkeys,limitkeys) }}
{% with delimitkeys = {} %}
{% include 'snippets/timeselection.jinja' %}
diff --git a/maloja/web/jinja/snippets/links.jinja b/maloja/web/jinja/snippets/links.jinja
index e49b2c3..280ed75 100644
--- a/maloja/web/jinja/snippets/links.jinja
+++ b/maloja/web/jinja/snippets/links.jinja
@@ -1,5 +1,5 @@
{% macro link(entity) -%}
- {% if entity is mapping and 'artists' in entity %}
+ {% if entity is mapping and 'title' in entity or 'albumtitle' in entity %}
{% set name = entity.title or entity.albumtitle %}
{% else %}
{% set name = entity %}
diff --git a/maloja/web/jinja/top_albums.jinja b/maloja/web/jinja/top_albums.jinja
index c7a0782..df1a416 100644
--- a/maloja/web/jinja/top_albums.jinja
+++ b/maloja/web/jinja/top_albums.jinja
@@ -1,6 +1,7 @@
{% extends "abstracts/base.jinja" %}
{% block title %}Maloja - #1 Albums{% endblock %}
+{% import 'snippets/filterdescription.jinja' as filterdesc %}
@@ -17,7 +18,7 @@
|
#1 Albums
- {{ limitkeys.timerange.desc(prefix=True) }}
+ {{ filterdesc.desc(filterkeys,limitkeys) }}
{% include 'snippets/timeselection.jinja' %}
diff --git a/maloja/web/jinja/top_artists.jinja b/maloja/web/jinja/top_artists.jinja
index 175d213..ce4bf24 100644
--- a/maloja/web/jinja/top_artists.jinja
+++ b/maloja/web/jinja/top_artists.jinja
@@ -1,6 +1,7 @@
{% extends "abstracts/base.jinja" %}
{% block title %}Maloja - #1 Artists{% endblock %}
+{% import 'snippets/filterdescription.jinja' as filterdesc %}
@@ -17,7 +18,7 @@
|
#1 Artists
- {{ limitkeys.timerange.desc(prefix=True) }}
+ {{ filterdesc.desc(filterkeys,limitkeys) }}
{% include 'snippets/timeselection.jinja' %}
diff --git a/maloja/web/jinja/top_tracks.jinja b/maloja/web/jinja/top_tracks.jinja
index 42ae78d..0f98dd3 100644
--- a/maloja/web/jinja/top_tracks.jinja
+++ b/maloja/web/jinja/top_tracks.jinja
@@ -1,6 +1,7 @@
{% extends "abstracts/base.jinja" %}
{% block title %}Maloja - #1 Tracks{% endblock %}
+{% import 'snippets/filterdescription.jinja' as filterdesc %}
@@ -17,7 +18,7 @@
|
#1 Tracks
- {{ limitkeys.timerange.desc(prefix=True) }}
+ {{ filterdesc.desc(filterkeys,limitkeys) }}
{% include 'snippets/timeselection.jinja' %}
|