mirror of
https://github.com/krateng/maloja.git
synced 2025-07-09 03:04:07 -04: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": [
|
"xassociated": [
|
||||||
{"identifier":"include_associated","replacekeys":{"associated":True},"localisation":"Associated"},
|
{"identifier":"include_associated","replacekeys":{"associated":True},"localisation":"Associated"},
|
||||||
{"identifier":"exclude_associated","replacekeys":{"associated":False},"localisation":"Exclusive"}
|
{"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/>
|
<h1>Artist Charts</h1><a href="/top_artists"><span>View #1 Artists</span></a><br/>
|
||||||
{{ filterdesc.desc(filterkeys,limitkeys) }}
|
{{ filterdesc.desc(filterkeys,limitkeys) }}
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
{% with delimitkeys = {} %}
|
{% with delimitkeys = {}, artistchart=True %}
|
||||||
{% include 'snippets/timeselection.jinja' %}
|
{% include 'snippets/timeselection.jinja' %}
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
|
|
||||||
|
@ -75,3 +75,16 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% 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