]>
Commit | Line | Data |
---|---|---|
dc96f754 MT |
1 | {% extends "../base.html" %} |
2 | ||
3 | {% block title %}{{ _("Admin") }}{% end block %} | |
4 | ||
5 | {% block container %} | |
a05bedaf | 6 | <section class="section"> |
dc96f754 | 7 | <div class="container"> |
a05bedaf RH |
8 | <div class="columns"> |
9 | <div class="column"> | |
10 | <div class="has-text-centered"> | |
11 | <h1 class="title is-1">{{ "{:,d}".format(total) }}</h1> | |
278a2971 | 12 | <h4 class="title is-4">{{ _("Total Profiles") }}</h4> |
a05bedaf | 13 | </div> |
dc838425 | 14 | </div> |
dc96f754 | 15 | |
a05bedaf RH |
16 | <div class="column"> |
17 | <div class="has-text-centered"> | |
18 | <h1 class="title is-1">{{ "%.2f%%" % (with_data * 100 / total) }}</h1> | |
19 | <h4 class="title is-4">{{ _("Reporting back to us") }}</h4> | |
20 | </div> | |
dc96f754 MT |
21 | </div> |
22 | </div> | |
23 | </div> | |
24 | </section> | |
278a2971 MT |
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 %} | |
dc96f754 | 47 | {% end block %} |