From f4074f433a5b556d2c9927b6ffaaf9c7b8f1e28d Mon Sep 17 00:00:00 2001 From: rembo10 Date: Mon, 25 Jun 2012 23:50:01 +0530 Subject: [PATCH] Moved all of the ajax functions over to use the cache rather than last.fm/amazon --- data/interfaces/default/album.html | 25 ++++++++++++---- data/interfaces/default/artist.html | 2 +- data/interfaces/default/js/script.js | 28 +++++++++++++++--- data/interfaces/default/manageartists.html | 22 +++++++++----- data/interfaces/default/searchresults.html | 34 ++++++++++++---------- data/interfaces/default/upcoming.html | 21 +++++++++---- 6 files changed, 92 insertions(+), 40 deletions(-) diff --git a/data/interfaces/default/album.html b/data/interfaces/default/album.html index c76a520b..d5b1b54a 100644 --- a/data/interfaces/default/album.html +++ b/data/interfaces/default/album.html @@ -26,7 +26,7 @@
- albumart + albumart

${album['AlbumTitle']}

@@ -41,9 +41,7 @@ %>
- %if description: -

${description['Summary']}

- %endif +
  • Tracks: ${totaltracks}
  • Duration: ${albumduration}
  • @@ -128,8 +126,25 @@ <%def name="javascriptIncludes()"> - \ No newline at end of file + diff --git a/data/interfaces/default/searchresults.html b/data/interfaces/default/searchresults.html index bbf07f58..0207a223 100644 --- a/data/interfaces/default/searchresults.html +++ b/data/interfaces/default/searchresults.html @@ -26,8 +26,12 @@ else: grade = 'Z' %> - -
    + + %if type == 'album': +
    + %else: +
    + %endif %if type == 'album': ${result['title']} %endif @@ -55,20 +59,18 @@ - \ No newline at end of file + diff --git a/data/interfaces/default/upcoming.html b/data/interfaces/default/upcoming.html index 56a410d0..625e1bcd 100644 --- a/data/interfaces/default/upcoming.html +++ b/data/interfaces/default/upcoming.html @@ -40,7 +40,7 @@ %for album in wanted: - + ${album['ArtistName']} ${album['AlbumTitle']} ${album['ReleaseDate']} @@ -70,7 +70,7 @@ %for album in upcoming: - + ${album['ArtistName']} ${album['AlbumTitle']} ${album['ReleaseDate']} @@ -90,7 +90,19 @@ <%def name="javascriptIncludes()"> - \ No newline at end of file +