1 {% extends
"../base.html" %}
3 {% block title %}{{ _(
"Admin") }}{% end block %}
6 <section class=
"hero is-primary is-medium">
7 <div class=
"hero-body">
8 <div class=
"container">
9 <nav class=
"breadcrumb is-medium" aria-label=
"breadcrumbs">
21 <li class=
"is-active">
29 <h1 class=
"title is-1">Fireinfo Admin
</h1>
34 <section class=
"section">
35 <div class=
"container">
38 <div class=
"has-text-centered">
39 <h1 class=
"title">{{
"{:,d}".format(total) }}
</h1>
40 <h4 class=
"title is-4">{{ _(
"Total Profiles") }}
</h4>
45 <div class=
"has-text-centered">
46 <h1 class=
"title">{{
"%.2f%%" % (with_data *
100 / total) }}
</h1>
47 <h4 class=
"title is-4">{{ _(
"Reporting back to us") }}
</h4>
55 <section class=
"section">
56 <div class=
"container">
57 <h4 class=
"title is-4">{{ _(
"Autonomous Systems") }}
</h4>
59 <table class=
"table is-fullwidth">
61 <th>{{ _(
"Autonomous System") }}
</th>
62 <th class=
"has-text-right">{{ _(
"Total Profiles") }}
</th>
63 <th class=
"has-text-right">{{ _(
"Percentage") }}
</th>
66 {% for asn in sorted(asn_map, key=lambda asn: asn_map[asn], reverse=True) %}
67 {% set c, p = asn_map[asn] %}
70 <th scope=
"row">{{ asn }}
</th>
71 <td class=
"has-text-right">
74 <td class=
"has-text-right">
75 {{
"%.2f%%" % (p *
100) }}