{% extends "packages/package_base.html" %} {% block title %} {{ _("Statistics") }} - {{ package.title }} {% endblock %} {% from "macros/stats.html" import render_package_stats, render_package_stats_js, render_package_selector, render_daterange_selector with context %} {% block scriptextra %} {{ render_package_stats_js() }} {% endblock %} {% block content %}
{{ _("Download (.csv)") }} {{ render_daterange_selector(options) }} {{ render_package_selector(package.author, package=package) }}

{{ _("Statistics") }}

{{ render_package_stats(package.getURL('api.package_stats', start=start, end=end), package.downloads) }} {% endblock %}