-
+
|
Artist ChartsView #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 ChartsView #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
+
+
+ |
+
+
+
+
+ #
+
+
+
+
+ |
+
+
+
+
+ |
+
+
+
| |