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

Story Arc ManagementStory Arc Management

${storyarcname}

%if mylar.STORYARCDIR:
Arcs in StoryArc Directory: ${sdir}
%endif
<% if mylar.STORYARCDIR: carcdir = 'StoryArc' else: carcdir = 'GrabBag' %>
<% 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: haveit = cids[item['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['StoreDate'] != '0000-00-00' and item['StoreDate'] is not None: issuedate = item['StoreDate'] else: # this is needed for imported cbl's try: issuedate = item['issueYEAR'] except: issuedate = '0000-00-00' except: issuedate = '0000-00-00' %> %endfor
ComicName Issue Pub 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()">