$def with (counts) $ _x = ctx.setdefault('cssfile', 'admin') $ _x = ctx.setdefault('usergroup', 'admin') $ stats = get_admin_stats()
$if ctx.user and ctx.user.is_admin(): $:render_template("admin/menu")

$_("Stats")

$_("Edits Per Day")

$_("Edits")

$# detect-missing-i18n-skip-line $# detect-missing-i18n-skip-line
$_("Today") $_("Yesterday") $_("Last 7 days") $_("Last 28 days")
$_("Human") $commify(counts.human_edits.latest) $commify(counts.human_edits.previous) $commify(counts.human_edits.get_summary(7)) $commify(counts.human_edits.get_summary(28))
$_("Bot") $commify(counts.bot_edits.latest) $commify(counts.bot_edits.previous) $commify(counts.bot_edits.get_summary(7)) $commify(counts.bot_edits.get_summary(28))
$_("Total") $commify(counts.bot_edits.latest + counts.human_edits.latest) $commify(counts.bot_edits.previous + counts.human_edits.previous)$commify(counts.bot_edits.get_summary(7) + counts.human_edits.get_summary(7))$commify(counts.bot_edits.get_summary(28) + counts.human_edits.get_summary(28))
$ acts_link = '/admin/people' if (ctx.user and ctx.user.is_admin()) else '/recentchanges/new-account' $_("New Accounts Per Day")

$_("Members")

$_("Today") $_("Yesterday") $_("Last 7 days") $_("Last 28 days") $_("All Time")
$commify(counts.members.latest) $commify(counts.members.previous) $commify(counts.members.get_summary(7)) $commify(counts.members.get_summary(28)) $commify(counts.members.total)

$_("Items Added")

$_("Last 7 days") $_("Last 28 days") $_("Trend") $_("Total")
$_("Works Added") $commify(counts.works.get_summary(7)) $commify(counts.works.get_summary(28))
$commify(counts.works.total)
$_("Editions Added") $commify(counts.editions.get_summary(7)) $commify(counts.editions.get_summary(28))
$commify(counts.editions.total)
$_("Authors Added") $commify(counts.authors.get_summary(7)) $commify(counts.authors.get_summary(28))
$commify(counts.authors.total)
$_("Covers Added") $commify(counts.covers.get_summary(7)) $commify(counts.covers.get_summary(28))
$commify(counts.covers.total)
$_("New Members") $commify(counts.members.get_summary(7)) $commify(counts.members.get_summary(28))
$commify(counts.members.total)
$_("Lists Added") $commify(counts.lists.get_summary(7)) $commify(counts.lists.get_summary(28))
$commify(counts.lists.total)
$_("Books Logged") $commify(counts.reading_log['total_books_logged']['week']['count']) $commify(counts.reading_log['total_books_logged']['month']['count']) $commify(counts.reading_log['total_books_logged']['total']['count'])
$_("Users Logging") $commify(counts.reading_log['total_users_logged']['week']['count']) $commify(counts.reading_log['total_users_logged']['month']['count']) $commify(counts.reading_log['total_users_logged']['total']['count'])
$_("Yearly Reading Goals") $commify(counts.reading_log['total_yearly_reading_goals']['week']) $commify(counts.reading_log['total_yearly_reading_goals']['month']) $commify(counts.reading_log['total_yearly_reading_goals']['total'])
$_("Books Review Tags") $commify(counts.reading_log['total_reviews']['week']) $commify(counts.reading_log['total_reviews']['month']) $commify(counts.reading_log['total_reviews']['total'])
$_("Books Reviewed") $commify(counts.reading_log['total_books_reviewed']['week']) $commify(counts.reading_log['total_books_reviewed']['month']) $commify(counts.reading_log['total_books_reviewed']['total'])
$_("Users Reviewing") $commify(counts.reading_log['total_reviewers']['week']) $commify(counts.reading_log['total_reviewers']['month']) $commify(counts.reading_log['total_reviewers']['total'])
$_("Patrons Following") $commify(counts.reading_log['total_following_count']['week']) $commify(counts.reading_log['total_following_count']['month']) $commify(counts.reading_log['total_following_count']['total'])
$_("Notes Created") $commify(counts.reading_log['total_notes_created']['week']) $commify(counts.reading_log['total_notes_created']['month']) $commify(counts.reading_log['total_notes_created']['total'])
$_("Patrons Creating Notes") $commify(counts.reading_log['total_note_takers']['week']) $commify(counts.reading_log['total_note_takers']['month']) $commify(counts.reading_log['total_note_takers']['total'])
$_("Books Starred") $commify(counts.reading_log['total_books_starred']['week']) $commify(counts.reading_log['total_books_starred']['month']) $commify(counts.reading_log['total_books_starred']['total'])
$_("Star Rating Patrons") $commify(counts.reading_log['total_star_raters']['week']) $commify(counts.reading_log['total_star_raters']['month']) $commify(counts.reading_log['total_star_raters']['total'])

$_("Unique Visitors")

$_('Unique visitors IPs per day graph')

$_("Borrows")

$_('Borrows, last 3 months graph') $_('Borrows, last 2 years graph')