$def with (lists, username) $def list_card(list): $ cached_info = list.get_patron_showcase() $ count = cached_info["count"]
$for img_url in cached_info["covers"]: $if img_url: $ img_url = img_url.replace("-S.jpg", "-M.jpg") $else: $ img_url = '/images/icons/avatar_book-sm.png'
$cached_info["title"]
$ungettext("%(count)d book", "%(count)d books", count, count=count)