$def with (user)
$ungettext("1 book", "%(count)d books", len(waitinglist), count=len(waitinglist)) | $_("Status") | $_("Actions") | |
---|---|---|---|
$:render_template('covers/book_cover_small', book) |
$book.title
$ ndays = record.get_waiting_in_days()
$ungettext("Waiting for 1 day", "Waiting for %(count)d days", ndays, count=ndays)
$if status == "waiting":
$ wsize = book.get_waitinglist_size()
$ pos = record.get_position()
$if pos == 1:
$_("You are the next person to receive this book.")
$else:
$ungettext("There is one person ahead of you in the waiting list.", "There are %(count)d people ahead of you in the waiting list.", pos-1, count=pos-1)
|
$record['status'].title() $if status == "available": $ delta_hours = record.get_expiry_in_hours()
$if delta_hours == 0:
$_("You have less than an hour to borrow it.")
$else:
$ungettext("You have one more hour to borrow it.", "You have %(hours)d more hours to borrow it.", delta_hours, hours=delta_hours)
|
$if status == "available": |