Added album page, checkboxes to artist page, more interface fixes

This commit is contained in:
Remy
2011-08-06 18:23:58 -07:00
parent 548b606c0d
commit 38e9af762b
8 changed files with 59 additions and 50 deletions

View File

@@ -28,15 +28,21 @@
percent = 0
totaltracks = '?'
if artist['ReleaseDate']:
if artist['ReleaseDate'] and artist['LatestAlbum']:
releasedate = artist['ReleaseDate']
albumdisplay = '%s (%s)' % (artist['LatestAlbum'], artist['ReleaseDate'])
if releasedate > helpers.today():
grade = 'A'
else:
grade = 'Z'
elif artist['LatestAlbum']:
releasedate = ''
grade = 'Z'
albumdisplay = artist['LatestAlbum']
else:
releasedate = ''
grade = 'Z'
albumdisplay = 'None'
if artist['Status'] == 'Paused':
grade = 'X'
@@ -45,7 +51,7 @@
<tr class="grade${grade}">
<td id="name"><span title="${artist['ArtistSortName']}"><span><a href="artistPage?ArtistID=${artist['ArtistID']}">${artist['ArtistName']}</a></td>
<td id="status">${artist['Status']}</td>
<td id="album"><span title="${releasedate}"><span><a href="albumPage?AlbumID=${artist['AlbumID']}">${artist['LatestAlbum']} ${releasedate}</a></td>
<td id="album"><span title="${releasedate}"><span><a href="albumPage?AlbumID=${artist['AlbumID']}">${albumdisplay}</a></td>
<td id="have"><span title="${percent}"><span><div class="progress-container"><div style="width:${percent}%"><div class="havetracks">${havetracks}/${totaltracks}</div></div></div></td>
</tr>
%endfor