$_('Trending Books'): $(pages[mode])
$_("See what readers from the community are adding to their bookshelves")
$if mode == 'forever':$_("Earliest trending data is from October 2017")
-
$if logged_books:
$for entry in logged_books:
$if 'bookshelf_id' in entry:
$ shelf = {1: _("Want to Read"), 2: _("Currently Reading"), 3: _("Read")}[entry['bookshelf_id']]
$ extra = _("Someone marked as %(shelf)s %(k_hours_ago)s", shelf=shelf, k_hours_ago=datestr(entry['created']))
$else:
$ extra = _('Logged %(count)i times %(time_unit)s', count=entry['cnt'], time_unit=pages[mode])
$if entry.get('work'):
$:macros.SearchResultsWork(entry['work'], extra=extra, availability=entry['work'].get('availability'))
$:macros.Pager(page, 200, results_per_page=20)