]> git.ipfire.org Git - ipfire.org.git/blob - src/templates/analytics/docs.html
analytics: Add page about docs analytics
[ipfire.org.git] / src / templates / analytics / docs.html
1 {% extends "../base.html" %}
2
3 {% block title %}{{ _("Analytics") }} - {{ _("Docs") }}{% end block %}
4
5 {% block container %}
6 <section class="hero is-primary">
7 <div class="hero-body">
8 <div class="container">
9 <nav class="breadcrumb" aria-label="breadcrumbs">
10 <ul>
11 <li>
12 <a href="/">{{ _("Home") }}</a>
13 </li>
14 <li>
15 <a href="/analytics">{{ _("Analytics") }}</a>
16 </li>
17 <li class="is-active">
18 <a href="#" aria-current="page">{{ _("Documentation") }}</a>
19 </li>
20 </ul>
21 </nav>
22
23 <h1 class="title">{{ _("Documents") }}</h1>
24 </div>
25 </div>
26 </section>
27
28 <section class="section">
29 <div class="container">
30 <h4 class="title is-4">{{ _("Most Popular Pages") }}</h4>
31
32 {% module DocsList(popular_pages, show_author=False) %}
33 </div>
34 </section>
35
36 <section class="section">
37 <div class="container">
38 <h4 class="title is-4">{{ _("Popular Searches") }}</h4>
39
40 <table class="table is-fullwidth">
41 <thead>
42 <tr>
43 <th>{{ _("Search Query") }}</th>
44 <th class="has-text-right">{{ _("Searches") }}</th>
45 </tr>
46 </thead>
47
48 <tbody>
49 {% for search in sorted(popular_searches, key=lambda q: popular_searches[q], reverse=True) %}
50 <tr>
51 <th scope="row">{{ search }}</th>
52 <td class="has-text-right">{{ popular_searches[search] }}</td>
53 </tr>
54 {% end %}
55 </tbody>
56 </table>
57 </div>
58 </section>
59 {% end block %}