]> git.ipfire.org Git - ipfire.org.git/blame - src/templates/fireinfo/admin.html
fireinfo: Store ASN
[ipfire.org.git] / src / templates / fireinfo / admin.html
CommitLineData
dc96f754
MT
1{% extends "../base.html" %}
2
3{% block title %}{{ _("Admin") }}{% end block %}
4
5{% block container %}
e7672909
RH
6 <section class="hero is-primary is-fullheight-with-navbar">
7 <div class="hero-body">
8 <div class="container">
9 <nav class="breadcrumb is-medium" aria-label="breadcrumbs">
10 <ul>
11 <li>
12 <a href="https://ipfire.org/">
13 Home
14 </a>
15 </li>
16 <li>
17 <a href="/">
18 {{ _("Fireinfo") }}
19 </a>
20 </li>
21 <li class="is-active">
22 <a href="#">
23 Admin
24 </a>
25 </li>
26 </ul>
27 </nav>
3d938edd
RH
28 </div>
29 </div>
30 </section>
e7672909 31
a05bedaf 32 <section class="section">
dc96f754 33 <div class="container">
a05bedaf
RH
34 <div class="columns">
35 <div class="column">
36 <div class="has-text-centered">
ed83981e 37 <h1 class="title">{{ "{:,d}".format(total) }}</h1>
278a2971 38 <h4 class="title is-4">{{ _("Total Profiles") }}</h4>
a05bedaf 39 </div>
dc838425 40 </div>
dc96f754 41
a05bedaf
RH
42 <div class="column">
43 <div class="has-text-centered">
ed83981e 44 <h1 class="title">{{ "%.2f%%" % (with_data * 100 / total) }}</h1>
a05bedaf
RH
45 <h4 class="title is-4">{{ _("Reporting back to us") }}</h4>
46 </div>
dc96f754
MT
47 </div>
48 </div>
49 </div>
50 </section>
278a2971
MT
51
52 {% if histogram %}
53 <section class="section">
54 <div class="container">
55 <table class="table">
56 <tr>
57 <th>{{ _("Date") }}</th>
58 <th>{{ _("Total Profiles") }}</th>
59 </tr>
60
61 {% for date in sorted(histogram, reverse=True) %}
62 <tr>
63 <th scope="row">{{ format_date(date) }}</th>
64 <td>
65 {{ histogram[date] }}
66 </td>
67 </tr>
68 {% end %}
69 </table>
70 </div>
71 </section>
72 {% end %}
dc96f754 73{% end block %}