%inherit file="base.html"/> <%! import lazylibrarian from lazylibrarian.config2 import CONFIG %> <%def name="headerIncludes()">
Born: ${author['AuthorBorn']}, Died: ${author['AuthorDeath']}
%else: %if author['AuthorBorn']:Born: ${author['AuthorBorn']}
%endif %endif %if author['Status'] == 'Loading':%endif
Totalbooks: ${author['TotalBooks']}
<% totalbooks = author['UnignoredBooks'] havebooks = author['HaveBooks'] if not havebooks: havebooks = 0 try: percent = (havebooks*100.0)/totalbooks if percent > 100: percent = 100 if percent <= 100: css = "bg-success" if percent <= 75: css = "bg-info" if percent <= 50: css = "bg-warning" if percent <= 25: css = "bg-danger" except (ZeroDivisionError, TypeError): percent = 0 totalbooks = '0' css = "bg-danger" %>%def> <%def name="javascriptIncludes()"> %def>