contentdb/app/templates/packages/stats.html
2022-11-09 18:47:44 +00:00

21 lines
611 B
HTML

{% extends "packages/package_base.html" %}
{% block title %}
{{ _("Statistics") }} - {{ package.title }}
{% endblock %}
{% from "macros/stats.html" import render_package_stats, render_package_stats_js %}
{% block scriptextra %}
{{ render_package_stats_js() }}
{% endblock %}
{% block content %}
<a class="btn btn-secondary float-right" href="{{ package.getURL('packages.stats_csv') }}">
<i class="fas fa-download mr-1"></i>
{{ _("Download (.csv)") }}
</a>
<h2 class="mt-0">{{ _("Statistics") }}</h2>
{{ render_package_stats(package.getURL('api.package_stats'), package.downloads) }}
{% endblock %}