diff --git a/maloja/static/less/maloja.less b/maloja/static/less/maloja.less index 9f97c19..9fdb66d 100644 --- a/maloja/static/less/maloja.less +++ b/maloja/static/less/maloja.less @@ -698,6 +698,12 @@ table.tiles_3x3 td { width:33.333%; font-size:70% } +table.tiles_4x4 td { + font-size:50% +} +table.tiles_5x5 td { + font-size:40% +} diff --git a/maloja/web/charts_artists.pyhp b/maloja/web/charts_artists.pyhp index 4e85d87..a2962c3 100644 --- a/maloja/web/charts_artists.pyhp +++ b/maloja/web/charts_artists.pyhp @@ -10,15 +10,18 @@ - # this is temporary! all modules need to be converted into partials at some point - html_charts, rep = htmlmodules.module_artistcharts(**amountkeys,**limitkeys) + try: + top = db.get_charts_artists(**filterkeys,**limitkeys)[0]["artist"] + img = utilities.getArtistImage(top) + except: + img = ""
-
+

Artist Charts

View #1 Artists
@@ -32,8 +35,9 @@ - + + diff --git a/maloja/web/charts_tracks.pyhp b/maloja/web/charts_tracks.pyhp index 84715a8..9850375 100644 --- a/maloja/web/charts_tracks.pyhp +++ b/maloja/web/charts_tracks.pyhp @@ -10,15 +10,21 @@ - # this is temporary! all modules need to be converted into partials at some point - html_charts, rep = htmlmodules.module_trackcharts(**amountkeys,**limitkeys) + try: + try: + img = utilities.getArtistImage(filterkeys['artist']) + except: + top = db.get_charts_tracks(**filterkeys,**limitkeys)[0]["track"] + img = utilities.getTrackImage(**top) + except: + img = ""
-
+

Track Charts

View #1 Tracks
@@ -35,8 +41,9 @@ - + + diff --git a/maloja/web/partial/charts_artists_tiles.pyhp b/maloja/web/partial/charts_artists_tiles.pyhp new file mode 100644 index 0000000..da09e74 --- /dev/null +++ b/maloja/web/partial/charts_artists_tiles.pyhp @@ -0,0 +1,49 @@ + + num_levels = 3 + + + + + + + + + + + + + + + + + +
+ + + + + try: + entry = next(artists_iterator) + artist = entry['artist'] + rank = entry['rank'] + except: + artist = None + + + + + + + + + + +
+ + # + + + + +
diff --git a/maloja/web/partial/charts_tracks_tiles.pyhp b/maloja/web/partial/charts_tracks_tiles.pyhp new file mode 100644 index 0000000..915b393 --- /dev/null +++ b/maloja/web/partial/charts_tracks_tiles.pyhp @@ -0,0 +1,51 @@ + + num_levels = 3 + + + + + + + + + + + + + + + + + +
+ + + + + try: + entry = next(tracks_iterator) + track = entry['track'] + artists = track['artists'] + title = track['title'] + rank = entry['rank'] + except: + track = None + + + + + + + + + + +
+ + # + + + + +