<%inherit file="base.html"/> <%! from mylar import helpers, db import datetime import decimal %> <%def name="body()">
%for comic in comics: <% if comic['percent'] == 101: css = '
' if comic['percent'] == 100: css = '
' if comic['percent'] < 100: css = '
' if any([comic['haveissues'] == 'None', comic['haveissues'] is None]): hissues = 0 else: hissues = comic['haveissues'] if any([comic['totalissues'] == 'None', comic['totalissues'] is None]): tissues = 0 else: tissues = comic['totalissues'] comic_percent = comic['percent'] if comic['Status'] == 'Paused': grade = 'T' elif comic['Status'] == 'Loading': grade = 'L' elif comic['Status'] == 'Error': grade = 'X' else: grade = 'A' comicpub = comic['ComicPublisher'] try: if len(comic['ComicPublisher']) > 15: comicpub = comic['ComicPublisher'][:15] + '...' except: pass comicname = comic['ComicSortName'] try: if len(comic['ComicSortName']) > 55: comicname = comic['ComicSortName'][:55] + '...' except: pass comicline = comicname comictype = comic['Type'] try: if (any([comictype == 'None', comictype is None, comictype == 'Print']) and comic['Corrected_Type'] != 'TPB') or all([comic['Corrected_Type'] is not None, comic['Corrected_Type'] == 'Print']): comictype = None else: if comic['Corrected_Type'] is not None: comictype = comic['Corrected_Type'] else: comictype = comictype except: comictype = None if comictype is not None: comicline += ' [%s]' % (comictype) %>
%endfor
Publisher Comic Year Last Issue Published Have Status Active
${comicpub} ${comicline} ${comic['ComicYear']} # ${comic['LatestIssue']} ${comic['LatestDate']} ${css}
${comic['haveissues']}/${comic['totalissues']}
${comic['recentstatus']} %if comic['Status'] == "Active": Y %elif comic['Status'] == 'Paused': Paused %elif comic['Status'] == 'Loading': Loading %else: N %endif
<%def name="headIncludes()"> <%def name="javascriptIncludes()">