]> git.ipfire.org Git - ipfire.org.git/blob - src/templates/fireinfo/admin.html
Merge branch 'fireinfo-wip' into new-design
[ipfire.org.git] / src / templates / fireinfo / admin.html
1 {% extends "../base.html" %}
2
3 {% block title %}{{ _("Admin") }}{% end block %}
4
5 {% block container %}
6 <section class="section">
7 <div class="container">
8 <div class="columns">
9 <div class="column">
10 <div class="has-text-centered">
11 <h1 class="title">{{ "{:,d}".format(total) }}</h1>
12 <h4 class="title is-4">{{ _("Total Profiles") }}</h4>
13 </div>
14 </div>
15
16 <div class="column">
17 <div class="has-text-centered">
18 <h1 class="title">{{ "%.2f%%" % (with_data * 100 / total) }}</h1>
19 <h4 class="title is-4">{{ _("Reporting back to us") }}</h4>
20 </div>
21 </div>
22 </div>
23 </div>
24 </section>
25
26 {% if histogram %}
27 <section class="section">
28 <div class="container">
29 <table class="table">
30 <tr>
31 <th>{{ _("Date") }}</th>
32 <th>{{ _("Total Profiles") }}</th>
33 </tr>
34
35 {% for date in sorted(histogram, reverse=True) %}
36 <tr>
37 <th scope="row">{{ format_date(date) }}</th>
38 <td>
39 {{ histogram[date] }}
40 </td>
41 </tr>
42 {% end %}
43 </table>
44 </div>
45 </section>
46 {% end %}
47 {% end block %}