diff --git a/website/artist.html b/website/artist.html index 6c54f63..6ca0ef4 100644 --- a/website/artist.html +++ b/website/artist.html @@ -14,7 +14,7 @@
-

KEY_ARTISTNAME

KEY_POSITION
+

KEY_ARTISTNAME

KEY_POSITION
KEY_ASSOCIATED

KEY_SCROBBLES Scrobbles

diff --git a/website/artist.py b/website/artist.py index d7d7cde..38885fd 100644 --- a/website/artist.py +++ b/website/artist.py @@ -38,7 +38,7 @@ def replacedict(keys,dbport): html += "" + e["title"] + "" tracks.append(html) - trackshtml = "" + trackshtml = "
" for t in tracks: trackshtml += "" trackshtml += t diff --git a/website/issues.py b/website/issues.py index 363c056..34a5101 100644 --- a/website/issues.py +++ b/website/issues.py @@ -8,7 +8,7 @@ def replacedict(keys,dbport): db_data = json.loads(response.read()) i = 0 - html = "
" + html = "
" if db_data["inconsistent"]: html += "" html += "" diff --git a/website/maloja.css b/website/maloja.css index 94b8901..0d482b8 100644 --- a/website/maloja.css +++ b/website/maloja.css @@ -39,22 +39,61 @@ table.top_info td.text h1 { display:inline; padding-right:5px; } - +/* table.top_info td.text .stats { color:grey; } +*/ +.stats { + color:grey; +} +.rank { + text-align:right; + color:grey; +} + +table.list { + border-collapse:collapse; +} + +table.list tr { + border-bottom:2px solid; + border-color:rgba(0,0,0,0) + +} table tr:nth-child(even) { background-color:#37373B; } +table tr:nth-child(5n) { + border-color:rgba(120,120,120,0.2); + +} + table td.time { width:200px; - color:lightgray; + color:gray; } -table td.artists,td.artist,td.title,td.amount { +table td.artists,td.artist,td.title { width:350px; } +table td.amount { + width:50px; + text-align:right; +} +table td.bar { + width:300px; +} +table td.bar div { + background-color:beige; + height:20px; /* can only do this absolute apparently */ + position:relative; +} +table tr:hover td.bar div { + background-color:yellow; + cursor:pointer; +} table td.button { width:200px; diff --git a/website/scrobbles.py b/website/scrobbles.py index 696c7f9..78b8176 100644 --- a/website/scrobbles.py +++ b/website/scrobbles.py @@ -24,7 +24,7 @@ def replacedict(keys,dbport): db_data = json.loads(response.read()) scrobbles = db_data["list"] - html = "
The current database wasn't built with all current rules in effect. Any problem below might be a false alarm and fixing it could create redundant rules.
" + html = "
" for s in scrobbles: html += "
" timestring = getTimeDesc(s["time"]) diff --git a/website/topartists.html b/website/topartists.html index 6290139..cf941c3 100644 --- a/website/topartists.html +++ b/website/topartists.html @@ -14,7 +14,7 @@
-

Top Artists


+

Top Artists


in KEY_RANGE

KEY_SCROBBLES Scrobbles

diff --git a/website/topartists.py b/website/topartists.py index a961cf8..17ddf95 100644 --- a/website/topartists.py +++ b/website/topartists.py @@ -23,13 +23,18 @@ def replacedict(keys,dbport): scrobbles = len(scrobblelist) + maxbar = charts[0]["scrobbles"] - - html = "" + i = 1 + html = "
" for e in charts: - html += "" + html += "" + html += "" + html += "" + html += "" + i += 1 html += "
" + html += "
#" + str(i) + "" html += "" + e["artist"] + "" - html += "" + str(e["scrobbles"]) + "
" + str(e["scrobbles"]) + "
" return {"KEY_TOPARTIST_IMAGEURL":imgurl,"KEY_SCROBBLES":str(scrobbles),"KEY_ARTISTLIST":html}