$def with (stats)

$_('Reading Log Stats')

$_('# Books Logged')

$_('The total number of books logged using the Reading Log feature')

$_('All time') $stats['total_books_logged']['total']['count']
$_('This Month') $stats['total_books_logged']['month']['count']

$_('# Unique Users Logging Books')

$_('The total number of unique users who have logged at least one book using the Reading Log feature')

$_('All time') $stats['total_users_logged']['total']['count']
$_('This Month') $stats['total_users_logged']['month']['count']

$_('# Books Starred')

$_('The total number of books which have been starred')

$_('All time') $stats['total_books_starred']['total']['count']
$_('This Month') $stats['total_books_starred']['month']['count']
$_('Total # Unique Raters (all time)') $stats['total_books_starred']['unique']['count']

$_('Most Wanted Books (This Month)')

    $for book in stats['leaderboard']['most_wanted_month']: $:macros.SearchResultsWork(book['work'], decorations=ungettext("Added 1 time", "Added %(count)d times", book['cnt'], count=book['cnt']), availability=book.get('availability'))

$_('Most Wanted Books (All Time)')

    $for book in stats['leaderboard']['most_wanted_all']: $:macros.SearchResultsWork(book['work'], decorations=ungettext("Added 1 time", "Added %(count)d times", book['cnt'], count=book['cnt']), availability=book.get('availability'))

$_('Most Logged Books')

$_('Most Read Books (All Time)')

    $for book in stats['leaderboard']['most_read']: $:macros.SearchResultsWork(book['work'], decorations=ungettext("Added 1 time", "Added %(count)d times", book['cnt'], count=book['cnt']), availability=book.get('availability'))

$_('Most Rated Books')

$_('Most Rated Books (All Time)')

    $for book in stats['leaderboard']['most_rated_all']: $:macros.SearchResultsWork(book['work'], decorations=ungettext("Added 1 time", "Added %(count)d times", book['cnt'], count=book['cnt']), availability=book.get('availability'))