%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'
if comic['Status'] == 'Loading':
grade = 'L'
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>