1
0
Fork 0
mirror of https://github.com/evilhero/mylar synced 2024-12-24 16:51:42 +00:00

Fix Mako Runtime Error when adding multiple comics.

Sometimes, when adding multiple comics, series['Previous'] or series['Next']
wouldn't be set by the time data/interfaces/default/comicdetails.html got
rendered, which resulted in a KeyError and a ugly error screen.
This commit is contained in:
Pedro Vanzella 2014-11-03 13:22:59 -02:00 committed by evilhero
parent ea8548982e
commit 78e8110015

View file

@ -43,8 +43,12 @@
</div> </div>
</h1> </h1>
<div style="z-index:10; position: absolute; right: 0; top: 10;"> <div style="z-index:10; position: absolute; right: 0; top: 10;">
% if 'Previous' in series:
<a href="comicDetails?ComicID=${series['Previous']}"><img src="interfaces/default/images/prev.gif" width="16" height="18" /></a> <a href="comicDetails?ComicID=${series['Previous']}"><img src="interfaces/default/images/prev.gif" width="16" height="18" /></a>
% endif
% if 'Next' in series:
<a href="comicDetails?ComicID=${series['Next']}"><img src="interfaces/default/images/next.gif" width="16" height="18" /></a> <a href="comicDetails?ComicID=${series['Next']}"><img src="interfaces/default/images/next.gif" width="16" height="18" /></a>
% endif
</div> </div>
</div> </div>