<%inherit file="base.html" /> <%! from headphones import db import headphones %> <%def name="body()">

selected artists

%for artist in artists: <% if artist['Status'] == 'Paused': grade = 'X' elif artist['Status'] == 'Loading': grade = 'C' else: grade = 'Z' if artist['ReleaseDate'] and artist['LatestAlbum']: releasedate = artist['ReleaseDate'] albumdisplay = '%s (%s)' % (artist['LatestAlbum'], artist['ReleaseDate']) elif artist['LatestAlbum']: releasedate = '' albumdisplay = '%s' % artist['LatestAlbum'] else: releasedate = '' albumdisplay = 'None' %> %endfor
Status Artist Name Latest Album
%if artist['Status'] == 'Paused': %elif artist['Status'] == 'Loading': %elif artist['Status'] == 'Active': %else: %endif ${artist['Status']} ${artist['ArtistName']} ${albumdisplay}
<%def name="headIncludes()"> <%def name="javascriptIncludes()">