<%inherit file="base.html"/> <%! import os from mylar import db import mylar %> <%def name="headerIncludes()">
Refresh Comic Delete Comic %if mylar.RENAME_FILES: Rename Files %endif Recheck Files %if mylar.ENABLE_META: Manual MetaTagging %endif %if comic['Status'] == 'Paused': Resume Comic %else: Pause Comic %endif %if annuals: Delete Annuals %endif Add All to Readinglist
<%def name="body()">


%if comic['Status'] == 'Loading': loading %endif
${comic['ComicName']} (${comic['ComicYear']}) %if comic['Status'] == 'Loading':

(Comic information is currently being loaded)

%endif

% if 'Previous' in series: % endif % if 'Next' in series: % endif
%if comic['ComicPublisher'] == 'DC Comics': DC %elif comic['ComicPublisher'] == 'Marvel': Marvel %elif comic['ComicPublisher'] == 'Image': Image %elif comic['ComicPublisher'] == 'Dark Horse Comics' or comic['ComicPublisher'] == 'Dark Horse': Darkhorse %elif comic['ComicPublisher'] == 'IDW Publishing': IDW %elif comic['ComicPublisher'] == 'Icon': Icon %elif comic['ComicPublisher'] == 'Red5': Red5 %elif comic['ComicPublisher'] == 'Vertigo': Vertigo %elif comic['ComicPublisher'] == 'ShadowLine': Shadowline %elif comic['ComicPublisher'] == 'Archie Comics': Archie %elif comic['ComicPublisher'] == 'Oni Press': Oni Press %elif comic['ComicPublisher'] == 'Tokyopop': Tokyopop %elif comic['ComicPublisher'] == 'Midtown Comics': Midtown %elif comic['ComicPublisher'] == 'Boom! Studios': Boom! %elif comic['ComicPublisher'] == 'Skybound': Skybound %elif comic['ComicPublisher'] == 'Vertigo': Dynamite %elif comic['ComicPublisher'] == 'Top Cow': Top Cow %elif comic['ComicPublisher'] == 'Dynamite Entertainment': Dynamite %elif comic['ComicPublisher'] == 'Cartoon Books': Cartoon Books %elif comic['ComicPublisher'] == 'Valiant': Valiant %elif comic['ComicPublisher'] == 'Action Lab': Action Lab %elif comic['ComicPublisher'] == 'Zenescope Entertainment': Zenescope %endif
<% if comic['Type'] == 'None' or comic['Type'] is None or comic['Type'] == 'Print': comictype = 'Print' else: comictype = 'Digital' %>
%if mylar.MULTIPLE_DEST_DIRS is not None and mylar.MULTIPLE_DEST_DIRS != 'None': <% try: archive_path = os.path.join(mylar.MULTIPLE_DEST_DIRS, os.path.basename(comic['ComicLocation'])) except: archive_path = 'None' %> %if os.path.exists(archive_path) and archive_path != comic['ComicLocation']:

Primary: ${comic['ComicLocation']}
Secondary: ${archive_path}

%else: %endif %else: %endif
%if comic['ComicPublisher'] == 'DC Comics': DC %elif comic['ComicPublisher'] == 'Marvel': Marvel %elif comic['ComicPublisher'] == 'Image': Image %elif comic['ComicPublisher'] == 'Dark Horse Comics': Darkhorse %elif comic['ComicPublisher'] == 'IDW Publishing': IDW %endif
<% if comic['UseFuzzy'] == "0" or comic['UseFuzzy'] is None: fuzzy = "None" fuzzy_year = "0" elif comic['UseFuzzy'] == "1": fuzzy = "Remove Year" fuzzy_year = "1" elif comic['UseFuzzy'] == "2": fuzzy = "Fuzzy Year" fuzzy_year = "2" %>
%if comic['ComicPublisher'] == 'DC Comics': DC %elif comic['ComicPublisher'] == 'Marvel': Marvel %elif comic['ComicPublisher'] == 'Image': Image %elif comic['ComicPublisher'] == 'Dark Horse Comics': Darkhorse %elif comic['ComicPublisher'] == 'IDW Publishing': IDW %endif


%if any([comic['ComicYear'] == '2099',comic['ComicYear'] == '0000', comic['ComicYear'] == '', comic['Corrected_SeriesYear']]):

%endif


the directory where all the comics are located for this particular comic
Alternate comic names to be searched in case naming is different (ie. Hack/Slash = hack-slash)
Alternate file-naming to be used when post-processing / renaming files instead of the actual title.
<% year_options = "Default - Keep the Year as is\nYear Removal - Remove issue publication year from searches (dangerous)\nFuzzy the Year - Increase & Decrease the issue publication year by one" %> Default  Year Removal  Fuzzy the Year
%if mylar.ENABLE_32P and mylar.MODE_32P == 1:
%endif
%if mylar.FAILED_DOWNLOAD_HANDLING: %endif
Mark selected issues as selected issues
%for issue in issues: <% if issue['Status'] == 'Skipped': grade = 'Z' elif issue['Status'] == 'Wanted': grade = 'X' elif issue['Status'] == 'Snatched': grade = 'C' elif issue['Status'] == 'Downloaded': grade = 'A' elif issue['Status'] == 'Archived': grade = 'A' elif issue['Status'] == 'Ignored': grade = 'A' elif issue['Status'] == 'Failed': grade = 'C' else: grade = 'A' %> <% if len(issue['IssueName']) > 70: issuename = issue['IssueName'][:70] + '...' else: issuename = issue['IssueName'] endif %> %endfor
IntIssNum Number Name Date Status Options
${issue['Int_IssueNumber']} ${issue['Issue_Number']}${issuename} ${issue['IssueDate']} ${issue['Status']} %if issue['Status'] == 'Downloaded' or issue['Status'] == 'Archived': <%Csize = mylar.helpers.human_size(issue['ComicSize'])%> %endif %if issue['Status'] == 'Skipped' or issue['Status'] == 'Ignored': %elif (issue['Status'] == 'Wanted'): %elif (issue['Status'] == 'Snatched'): %if mylar.FAILED_DOWNLOAD_HANDLING: %endif %elif (issue['Status'] == 'Downloaded'): <% if issue['Location'] is not None: linky = os.path.join(comic['ComicLocation'],issue['Location']) if not os.path.isfile(linky): if mylar.MULTIPLE_DEST_DIRS is not None and mylar.MULTIPLE_DEST_DIRS != 'None': pathdir = os.path.join(mylar.MULTIPLE_DEST_DIRS, os.path.basename(comic['ComicLocation'])) linky = os.path.join(pathdir,issue['Location']) else: linky = None else: linky = None %> %if linky: %if linky.endswith('.cbz'):
Close

%endif %if mylar.ENABLE_META: %endif %endif %else: %endif
%if annuals:

Annuals

%for aninfo in annualinfo: ${aninfo['annualComicName']} %endfor
Mark selected annuals as selected annuals
%for annual in annuals: <% if annual['Status'] == 'Skipped': agrade = 'Z' elif annual['Status'] == 'Wanted': agrade = 'X' elif annual['Status'] == 'Snatched': agrade = 'C' elif annual['Status'] == 'Downloaded': agrade = 'A' elif annual['Status'] == 'Archived': agrade = 'A' elif annual['Status'] == 'Ignored': agrade = 'A' elif annual['Status'] == 'Failed': agrade = 'C' else: agrade = 'A' %> <% if annual['Int_IssueNumber'] is None: annual_Number = annual['Int_IssueNumber'] else: annual_Number = annual['Int_IssueNumber'] - 100000 %> %endfor
Int_IssNumber Number Name Date Status Options
${annual_Number} ${annual['Issue_Number']} ${annual['IssueName']} ${annual['IssueDate']} ${annual['Status']} %if annual['Status'] == 'Downloaded' or annual['Status'] == 'Archived': <%Csize = mylar.helpers.human_size(annual['ComicSize'])%> %endif <% amode = 'want_ann' %> %if annual['Status'] == 'Skipped' or annual['Status'] == 'Ignored': %elif (annual['Status'] == 'Wanted'): %elif (annual['Status'] == 'Snatched'): %if mylar.FAILED_DOWNLOAD_HANDLING: %endif %elif (annual['Status'] == 'Downloaded'): <% if annual['Location'] is not None: linky = os.path.join(comic['ComicLocation'],annual['Location']) if not os.path.isfile(linky): linky = None else: linky = None %> %if linky: %if linky.endswith('.cbz'):
Close

%endif %if mylar.ENABLE_META: %endif %endif %else: %endif
%endif %if mylar.ANNUALS_ON:
%endif
<%def name="headIncludes()"> %if comic['Status'] == 'Loading': %endif <%def name="javascriptIncludes()">