aboutsummaryrefslogtreecommitdiff
path: root/templates/report_file.html
blob: c2a7fb48850164ff8c013c216225ae2a3d369b7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{% extends base_page %}

{% block content %}

<script language="javascript" type="text/javascript">
var dataset = [
{% for download in downloads %}
  ["{{download.region_isp}}", {{download.count}}],
{% endfor %}
]
$(document).ready(function() {
  $('#reports_table').DataTable({
    order: [[ 1, "desc" ]],
    aLengthMenu: [
      [25, 50, 75, 100, -1],
      [25, 50, 75, 100, "All"]
    ],
    iDisplayLength: 50,
    data: dataset,
  });
} );
</script>

<h2>{{year_month}} Downloads of {{name}}</h2>
<table id="reports_table" width="100%">
  <thead>
    <tr><th>Name</th><th>Count</th></tr>
  </thead>
</table>
{% endblock %}