$def with (loan, book)
$_('Borrowed %(date)s', date=datestr(datetime_from_utc_timestamp(loan['loaned_at'])))
$ wlsize = book.get_waitinglist_size() $if wlsize:
$ungettext("There is one person waiting for this book.", "There are %(n)s people waiting for this book.", wlsize, n=wlsize)
$if loan['expiry'] is None: $# Not yet fulfilled $_("Not yet downloaded.")
$_("Download Now") $else: $:macros.FormatExpiry(loan['expiry'])
$if loan['resource_type'] == 'bookreader': $:macros.LoanReadForm(loan['ocaid']) $:macros.ReturnForm(loan['ocaid'])