contentdb/app/templates/packages/stats.html

21 lines
611 B
HTML
Raw Normal View History

2022-11-06 18:58:35 +01:00
{% extends "packages/package_base.html" %}
{% block title %}
2022-11-06 19:51:33 +01:00
{{ _("Statistics") }} - {{ package.title }}
2022-11-06 18:58:35 +01:00
{% endblock %}
2022-11-09 19:47:44 +01:00
{% from "macros/stats.html" import render_package_stats, render_package_stats_js %}
2022-11-06 18:58:35 +01:00
{% block scriptextra %}
2022-11-09 19:47:44 +01:00
{{ render_package_stats_js() }}
2022-11-06 18:58:35 +01:00
{% endblock %}
{% block content %}
2022-11-08 19:47:28 +01:00
<a class="btn btn-secondary float-right" href="{{ package.getURL('packages.stats_csv') }}">
<i class="fas fa-download mr-1"></i>
{{ _("Download (.csv)") }}
</a>
2022-11-06 19:51:33 +01:00
<h2 class="mt-0">{{ _("Statistics") }}</h2>
2022-11-09 19:47:44 +01:00
{{ render_package_stats(package.getURL('api.package_stats'), package.downloads) }}
2022-11-06 18:58:35 +01:00
{% endblock %}