{% import 'components/macros.html' as macro %} {% extends 'base.html' %} {% block header %}

{% block title %}{{ _('Statistics') }}{% endblock %}

{{ _('All statistics transfert statistics in one place.') }}

{% endblock %} {% block content %}
{{macro.card_stats( _('Downloads'), _('Last %(hours)s hours', hours=24), 'download', 'text-primary', 'data?.last24h' )}} {{macro.card_stats( _('Downloads'), _('Last %(days)s days', days=7), 'download', 'text-primary', 'data?.last7d' )}} {{macro.card_stats( _('Downloads'), _('Last %(days)s days', days=30), 'download', 'text-primary', 'data?.last30d' )}} {{macro.card_stats( _('Downloads'), _('This year'), 'download', 'text-primary', 'data?.year' )}}
{{ _('Downloads') }}
{{ _('Total') }}
{{ stats_total.total_size }}
{{ _('Downloads') }}
{{ _('Total') }}
{{ stats_total.files }}
{{macro.card_stats( _('Torrents'), _('Last %(hours)s hours', hours=24), 'download', 'text-info', 'data?.last24h', 'total', 'trend_total' )}} {{macro.card_stats( _('Torrents'), _('Last %(days)s days', days=7), 'download', 'text-info', 'data?.last7d', 'total', 'trend_total' )}} {{macro.card_stats( _('Torrents'), _('Last %(days)s days', days=30), 'download', 'text-info', 'data?.last30d', 'total', 'trend_total' )}} {{macro.card_stats( _('Torrents'), _('This year'), 'download', 'text-info', 'data?.year', 'total', 'trend_total' )}}
{{ macro.datepicker_range('period') }}
{{ macro.stats_chart(_('Top %(number)s files by MIME type', number=stats_bar_y_limit), 'filesByMimeType') }} {{ macro.stats_chart(_('Top %(number)s size by MIME type', number=stats_bar_y_limit), 'sizeByMimeType') }}
{{ macro.stats_chart(_('Top %(number)s torrents by source', number=stats_bar_y_limit), 'torrentBySource') }} {{ macro.stats_chart(_('Top %(number)s size by source', number=stats_bar_y_limit), 'sizeBySource') }}
{{ macro.stats_chart(_('Downloads by year'), 'statsByYear', class='col-12') }}
{{ macro.stats_chart(_('Downloads by month'), 'statsByMonth', class='col-12') }}
{% endblock %}