<%inherit file="base.html"/> <%! import os import mylar from mylar.helpers import checked, listLibrary %> <%def name="headerIncludes()">
%if mylar.CONFIG.TAB_ENABLE: Sync %endif Remove Read Clear File Cache Search for Missing Search for Watchlist matches %if cvarcid: Refresh Story Arc %endif

Story Arc Management

<%def name="body()">

<% if arcdetail['percent'] == 101: css = '
' if arcdetail['percent'] == 100: css = '
' if arcdetail['percent'] < 100: css = '
' %>
${css}
${arcdetail['Have']}/${arcdetail['Total']}

${storyarcname}

(${spanyears})
%if mylar.CONFIG.STORYARCDIR is True: %endif
<% if mylar.CONFIG.STORYARCDIR: carcdir = 'StoryArc' else: carcdir = 'GrabBag' %>
<% optpos = '
' %> ${optpos}


%if storyarcbanner is not None:

%endif

<% cids = listLibrary() %> %for item in readlist: <% if item['Status'] == 'Skipped': grade = 'Z' elif item['Status'] == 'Wanted': grade = 'X' elif item['Status'] == 'Snatched': grade = 'C' elif item['Status'] == 'Downloaded': grade = 'A' elif item['Status'] == 'Archived': grade = 'A' elif item['Status'] == 'Ignored': grade = 'A' elif item['Status'] == 'Failed': grade = 'C' elif item['Status'] == 'Read': grade = 'C' elif item['Status'] == 'Not Watched': grade = 'X' else: grade = 'Z' if item['ComicID'] in cids: ht = cids[item['ComicID']] haveit = ht['comicid'] else: haveit = "No" if all([item['Volume'] is not None, item['Volume'] != 'None']): volume = 'V' + item['Volume'] else: volume = '' %> <% try: if item['IssueDate'] != '0000-00-00' and item['IssueDate'] is not None: issuedate = item['IssueDate'] else: if item['ReleaseDate'] != '0000-00-00' and item['ReleaseDate'] is not None: issuedate = item['ReleaseDate'] else: # this is needed for imported cbl's try: issuedate = item['issueYEAR'] except: issuedate = '0000-00-00' except: issuedate = '0000-00-00' %> %endfor
ComicName # Date Status Options
${item['ReadingOrder']} %if haveit == "No": ${item['ComicName']} ${volume} (${item['SeriesYear']}) %else: ${item['ComicName']} ${volume} (${item['SeriesYear']}) %endif ${item['IssueNumber']}${issuedate} ${item['Status']} %if item['Status'] == 'Downloaded' or item['Status'] == 'Archived': %endif %if any([item['Status'] is None, item['Status'] == None, item['Status'] == 'Skipped']): Grab %elif item['Status'] == 'Snatched': Retry %elif item['Status'] == 'Downloaded' and item['Location'] is not None: Download %endif Remove

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