You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
918 B
HTML

{% import "macros.htm" as macros %}
<!DOCTYPE html>
<html>
{% set title = "Statistics" %}
<head>
<meta charset="utf-8"/>
<title>{{ title }}</title>
{{ macros.shared_style() }}
</head>
<body>
{{ macros.body_header() }}
<h1>{{ title }}</h1>
<ul>
{% set cats = (
("Known", stats.media.known, stats.media.known_seconds),
("Watched", stats.media.watched, stats.media.watched_seconds),
("Ignored", stats.media.ignored, stats.media.ignored_seconds),
("To Watch", stats.media.to_watch, stats.media.to_watch_seconds),
) %}
{% for c in cats %}
<li>
{{ c[0] }} videos: {{ c[1] }} ({{ c[2] | timedelta }}) (Average: {{ (c[2] / c[1]) | timedelta }})
</li>
{% endfor %}
</ul>
</body>
</html>