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

# History

Date Added | File Name | Size | Status |
--- | --- | --- | --- | ---
%for item in history: <% if item['Status'] == 'Processed': grade = 'A' elif item['Status'] == 'Snatched': grade = 'C' elif item['Status'] == 'Unprocessed': grade = 'X' else: grade = 'U' fileid = 'unknown' if item['URL'].find('nzb') != -1: fileid = 'nzb' if item['URL'].find('torrent') != -1: fileid = 'torrent' if item['URL'].find('rutracker') != -1: fileid = 'torrent' %>
${item['DateAdded']} | ${item['Title']} [${fileid}][album page] | ${helpers.bytes_to_mb(item['Size'])} | ${item['Status']} | [retry][new]
%endfor

<%def name="headIncludes()"> <%def name="javascriptIncludes()">