bae491e32402cccc9c889f92b11e5fbf3d8a2eea
[wolnelektury.git] / src / reporting / templates / reporting / main.html
1 {% extends "base/base.html" %}
2 {% load i18n %}
3 {% load reporting_stats catalogue_tags %}
4
5 {% block titleextra %}{% trans "Reports" %}{% endblock %}
6
7 {% block bodyid %}reports-stats{% endblock %}
8
9
10 {% block body %}
11   <h1>Statystyka</h1>
12
13   <div class="normal-text">
14     <h3>Audiobooki</h3>
15
16     <table class="stats">
17       <tr><th>Utwory</th></tr>
18       <tr><td>Utwory:</td><td>{% count_books %}</td></tr>
19       <tr><td>Niezależne książki:</td><td>{% count_books_root %}</td></tr>
20       <tr><td>Utwory nadrzędne:</td><td>{% count_books_parent %}</td></tr>
21       <tr><td>Wszystkie utwory:</td><td>{% count_books_all %}</td></tr>
22
23       <tr><th>Media</th><th>Liczba</th><th>Rozmiar</th><th>Do wymiany</th></tr>
24       {% for mt in media_types %}
25         <tr>
26           <td>{{ mt.type }}:</td>
27           <td>{{ mt.count }}</td>
28           <td>{{ mt.size|filesizeformat }}</td>
29           <td>
30             {{ mt.deprecated }}
31             {% for m in mt.deprecated_files %}
32               <br/><a href="{{ m.book.get_absolute_url }}">{% book_title m.book %}: {{ m }}</a>
33             {% endfor %}
34           </td>
35         </tr>
36       {% endfor %}
37     </table>
38
39     <h3>Licencje</h3>
40     <ul>
41       {% for license, license_description in licenses %}
42         <li>{{ license }} ({{ license_description }})</li>
43       {% endfor %}
44     </ul>
45   </div>
46 {% endblock %}