mirror of
https://github.com/krateng/maloja.git
synced 2023-08-10 21:12:55 +03:00
Removed unintuitive link on track charts page of single artist
This commit is contained in:
parent
3ee7cd515a
commit
0be8f4d152
@ -13,7 +13,7 @@
|
|||||||
<div style="background-image:url('KEY_TOPARTIST_IMAGEURL')"></div>
|
<div style="background-image:url('KEY_TOPARTIST_IMAGEURL')"></div>
|
||||||
</td>
|
</td>
|
||||||
<td class="text">
|
<td class="text">
|
||||||
<h1>Track Charts</h1><a href="/top_tracks"><span>View #1 Tracks</span></a><br/>
|
<h1>Track Charts</h1>TOP_TRACKS_LINK<br/>
|
||||||
<span>KEY_LIMITS</span>
|
<span>KEY_LIMITS</span>
|
||||||
<!--<p class="stats">KEY_SCROBBLES Scrobbles</p>-->
|
<!--<p class="stats">KEY_SCROBBLES Scrobbles</p>-->
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
|
@ -10,6 +10,11 @@ def instructions(keys):
|
|||||||
|
|
||||||
filterkeys, timekeys, _, amountkeys = uri_to_internal(keys)
|
filterkeys, timekeys, _, amountkeys = uri_to_internal(keys)
|
||||||
|
|
||||||
|
if len(filterkeys) == 0:
|
||||||
|
toptrackslink = "<a href='/top_tracks'><span>View #1 Tracks</span></a>"
|
||||||
|
else:
|
||||||
|
toptrackslink = ""
|
||||||
|
|
||||||
|
|
||||||
limitstring = ""
|
limitstring = ""
|
||||||
|
|
||||||
@ -32,6 +37,12 @@ def instructions(keys):
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
replace = {"KEY_TOPARTIST_IMAGEURL":imgurl,"KEY_TRACKLIST":html_charts,"KEY_LIMITS":limitstring,"KEY_FILTERSELECTOR":html_filterselector}
|
replace = {
|
||||||
|
"KEY_TOPARTIST_IMAGEURL":imgurl,
|
||||||
|
"KEY_TRACKLIST":html_charts,
|
||||||
|
"KEY_LIMITS":limitstring,
|
||||||
|
"KEY_FILTERSELECTOR":html_filterselector,
|
||||||
|
"TOP_TRACKS_LINK":toptrackslink,
|
||||||
|
}
|
||||||
|
|
||||||
return (replace,pushresources)
|
return (replace,pushresources)
|
||||||
|
Loading…
Reference in New Issue
Block a user