2022-11-09 19:47:44 +01:00
|
|
|
{% extends "base.html" %}
|
|
|
|
|
|
|
|
{% block title %}
|
|
|
|
{{ _("Statistics for %(display_name)s's packages", display_name=user.display_name) }}
|
|
|
|
{% endblock %}
|
|
|
|
|
2023-06-14 23:47:08 +02:00
|
|
|
{% from "macros/stats.html" import render_package_stats, render_package_stats_js,
|
|
|
|
render_package_selector, render_daterange_selector with context %}
|
2022-11-09 19:47:44 +01:00
|
|
|
|
|
|
|
{% block scriptextra %}
|
|
|
|
{{ render_package_stats_js() }}
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
2023-08-22 20:58:43 +02:00
|
|
|
<div class="float-end">
|
2023-06-15 10:00:11 +02:00
|
|
|
{{ render_daterange_selector(options, start or end) }}
|
2022-11-09 19:58:58 +01:00
|
|
|
{{ render_package_selector(user, package=None) }}
|
|
|
|
</div>
|
2022-11-09 19:47:44 +01:00
|
|
|
<h2 class="mt-0">{{ self.title() }}</h2>
|
2023-06-15 09:45:28 +02:00
|
|
|
{{ render_package_stats(url_for("api.user_stats", username=user.username, start=start, end=end), downloads, start or end) }}
|
2022-11-09 19:47:44 +01:00
|
|
|
{% endblock %}
|