%inherit file="base.html"/>
<%!
from mylar import helpers
%>
<%def name="body()">
Publisher |
Comic |
Year |
Status |
Latest Issue |
Have |
%for comic in comics:
<%
totaltracks = comic['Total']
havetracks = comic['Have']
if not havetracks:
havetracks = 0
try:
percent = (havetracks*100.0)/totaltracks
if percent > 100:
percent = 100
except (ZeroDivisionError, TypeError):
percent = 0
totaltracks = '?'
if comic['Status'] == 'Paused':
grade = 'X'
elif comic['Status'] == 'Loading':
grade = 'L'
elif comic['Status'] == 'Error':
grade = 'Z'
else:
grade = 'A'
%>
${comic['ComicPublisher']} |
${comic['ComicName']} |
${comic['ComicYear']} |
${comic['Status']} |
# ${comic['LatestIssue']} (${comic['LatestDate']}) |
${havetracks}/${totaltracks} |
%endfor
%def>
<%def name="headIncludes()">
%def>
<%def name="javascriptIncludes()">
%def>