1b365b162f79918b02e97523a2a58abaf44bad3d
[wolnelektury.git] / src / stats / templates / stats / top.html
1 {% extends "2022/base_simple.html" %}
2
3 {% block settings %}
4   {% load title %}
5   {% title 'Top' %}
6 {% endblock %}
7
8
9 {% block body %}
10   <div class="white-box">
11     <form method=""get" action="">
12       {{ form.as_p }}
13       <button type="submit">Filtruj</button>
14     </form>
15     <hr>
16
17     <table>
18       <tr>
19         <th>Książka</th>
20         <th>Unikalne odsłony</th>
21         <th>Odsłony</th>
22       </tr>
23       {% for v in visits %}
24         <tr>
25           <td>
26             <a href="/katalog/lektura/{{ v.book__slug }}/">
27               {{ v.book__slug }}
28             </a>
29           </td>
30           <td>
31             {{ v.unique_views }}
32           </td>
33           <td>
34             {{ v.views }}
35           </td>
36         </tr>
37       {% endfor %}
38     </table>
39   </div>
40 {% endblock %}