mirror of
https://github.com/krateng/maloja.git
synced 2023-08-10 21:12:55 +03:00
Added default picture to charts when tiles are enabled
This commit is contained in:
parent
731653b964
commit
852795cecd
@ -15,9 +15,7 @@ def instructions(keys):
|
||||
|
||||
html_filterselector = module_filterselection(keys)
|
||||
|
||||
topartists = ""
|
||||
if get_settings("CHARTS_DISPLAY_TILES"):
|
||||
topartists = module_artistcharts_tiles(timerange=timekeys["timerange"])
|
||||
|
||||
|
||||
|
||||
html_charts, rep = module_artistcharts(**amountkeys,**timekeys)
|
||||
@ -27,9 +25,13 @@ def instructions(keys):
|
||||
else:
|
||||
imgurl = ""
|
||||
|
||||
topartists = ""
|
||||
imgdiv = '<div style="background-image:url('+imgurl+')"></div>'
|
||||
if get_settings("CHARTS_DISPLAY_TILES"):
|
||||
imgdiv = ""
|
||||
topartists = module_artistcharts_tiles(timerange=timekeys["timerange"])
|
||||
imgdiv = """<div style="background-image:url('favicon.png')"></div>"""
|
||||
|
||||
|
||||
|
||||
pushresources = [{"file":imgurl,"type":"image"}] if imgurl.startswith("/") else []
|
||||
|
||||
|
@ -23,9 +23,7 @@ def instructions(keys):
|
||||
|
||||
html_charts, rep = module_trackcharts(**amountkeys,**timekeys,**filterkeys)
|
||||
|
||||
toptracks = ""
|
||||
if get_settings("CHARTS_DISPLAY_TILES"):
|
||||
toptracks = module_trackcharts_tiles(timerange=timekeys["timerange"])
|
||||
|
||||
|
||||
|
||||
if filterkeys.get("artist") is not None:
|
||||
@ -36,9 +34,12 @@ def instructions(keys):
|
||||
else:
|
||||
imgurl = ""
|
||||
|
||||
toptracks = ""
|
||||
imgdiv = '<div style="background-image:url('+imgurl+')"></div>'
|
||||
if get_settings("CHARTS_DISPLAY_TILES"):
|
||||
imgdiv = ""
|
||||
toptracks = module_trackcharts_tiles(timerange=timekeys["timerange"])
|
||||
imgdiv = """<div style="background-image:url('favicon.png')"></div>"""
|
||||
|
||||
|
||||
limitstring += " " + timekeys["timerange"].desc(prefix=True)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user