]> git.ipfire.org Git - ipfire.org.git/blame - src/templates/fireinfo/admin.html
wiki: Only match usernames when a word starts with @
[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 %}
f0935d3b 6 <section class="hero is-primary is-medium">
e7672909
RH
7 <div class="hero-body">
8 <div class="container">
9 <nav class="breadcrumb is-medium" aria-label="breadcrumbs">
10 <ul>
11 <li>
ed55cebd 12 <a href="/">
e7672909
RH
13 Home
14 </a>
15 </li>
16 <li>
07828a72 17 <a href="/fireinfo">
e7672909
RH
18 {{ _("Fireinfo") }}
19 </a>
20 </li>
21 <li class="is-active">
22 <a href="#">
23 Admin
24 </a>
25 </li>
26 </ul>
27 </nav>
f0935d3b
RH
28
29 <h1 class="title is-1">Fireinfo Admin</h1>
3d938edd
RH
30 </div>
31 </div>
32 </section>
e7672909 33
a05bedaf 34 <section class="section">
dc96f754 35 <div class="container">
a05bedaf
RH
36 <div class="columns">
37 <div class="column">
38 <div class="has-text-centered">
ed83981e 39 <h1 class="title">{{ "{:,d}".format(total) }}</h1>
278a2971 40 <h4 class="title is-4">{{ _("Total Profiles") }}</h4>
a05bedaf 41 </div>
dc838425 42 </div>
dc96f754 43
a05bedaf
RH
44 <div class="column">
45 <div class="has-text-centered">
ed83981e 46 <h1 class="title">{{ "%.2f%%" % (with_data * 100 / total) }}</h1>
a05bedaf
RH
47 <h4 class="title is-4">{{ _("Reporting back to us") }}</h4>
48 </div>
dc96f754
MT
49 </div>
50 </div>
51 </div>
52 </section>
278a2971 53
0450fa54
MT
54 {% if asn_map %}
55 <section class="section">
56 <div class="container">
57 <h4 class="title is-4">{{ _("Autonomous Systems") }}</h4>
58
59 <table class="table is-fullwidth">
60 <tr>
61 <th>{{ _("Autonomous System") }}</th>
62 <th class="has-text-right">{{ _("Total Profiles") }}</th>
63 <th class="has-text-right">{{ _("Percentage") }}</th>
64 </tr>
65
66 {% for asn in sorted(asn_map, key=lambda asn: asn_map[asn], reverse=True) %}
67 {% set c, p = asn_map[asn] %}
68
69 <tr>
70 <th scope="row">{{ asn }}</th>
71 <td class="has-text-right">
72 {{ c }}
73 </td>
74 <td class="has-text-right">
75 {{ "%.2f%%" % (p * 100) }}
76 </td>
77 </tr>
78 {% end %}
79 </table>
80 </div>
81 </section>
82 {% end %}
dc96f754 83{% end block %}