<%inherit file="base.html"/> <%! from headphones import helpers import cgi %> <%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' elif item['Status'] == 'Frozen': 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('magnet:') != -1: fileid = 'torrent' if item['URL'].find('rutracker') != -1: fileid = 'torrent' if item['URL'].find('codeshy') != -1: fileid = 'nzb' folder = 'Folder: ' + item['FolderName'] %>
${item['DateAdded']} | ${cgi.escape(item['Title'], quote=True)} [${fileid}][album page] | ${helpers.bytes_to_mb(item['Size'])} | ${item['Status']} | [retry][new] |
%endfor

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