mirror of
https://github.com/krateng/maloja.git
synced 2025-04-22 19:40:28 +03:00
Added UI for artist chart separation
This commit is contained in:
parent
a12c52af1f
commit
b9242d843e
@ -76,6 +76,10 @@ def update_jinja_environment():
|
||||
"xassociated": [
|
||||
{"identifier":"include_associated","replacekeys":{"associated":True},"localisation":"Associated"},
|
||||
{"identifier":"exclude_associated","replacekeys":{"associated":False},"localisation":"Exclusive"}
|
||||
],
|
||||
"xseparate": [
|
||||
{"identifier":"count_combined","replacekeys":{"separate":False},"localisation":"Combined"},
|
||||
{"identifier":"count_separate","replacekeys":{"separate":True},"localisation":"Separate"}
|
||||
]
|
||||
}
|
||||
|
||||
|
@ -32,7 +32,7 @@
|
||||
<h1>Artist Charts</h1><a href="/top_artists"><span>View #1 Artists</span></a><br/>
|
||||
{{ filterdesc.desc(filterkeys,limitkeys) }}
|
||||
<br/><br/>
|
||||
{% with delimitkeys = {} %}
|
||||
{% with delimitkeys = {}, artistchart=True %}
|
||||
{% include 'snippets/timeselection.jinja' %}
|
||||
{% endwith %}
|
||||
|
||||
|
@ -75,3 +75,16 @@
|
||||
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% if artistchart %}
|
||||
<div>
|
||||
{% for o in xseparate %}
|
||||
{% if o.replacekeys | map('compare_key_in_dicts',o.replacekeys,allkeys) | alltrue %}
|
||||
<span style='opacity:0.5;'>{{ o.localisation }}</span>
|
||||
{% else %}
|
||||
<a href='{{ mlj_uri.create_uri("",allkeys,o.replacekeys) }}'><span>{{ o.localisation }}</span></a>
|
||||
{% endif %}
|
||||
{{ "|" if not loop.last }}
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user