dictionary_statistics.html
2.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
{% extends "base-margins.html" %}
{% load i18n %}
{% load static %}
{% load custom_templatetags %}
{% block title %}{% trans "Statystyki" %}{% endblock %}
{% block scripts %}
{% endblock %}
{% block content2 %}
<div class="card mt-3">
<h5 class="card-header">{% trans "Liczba haseł" %}</h5>
<div class="card-body">
<table class="table table-sm table-striped mb-0">
<thead>
<tr>
<th style="width: 13em;">{% trans "Status / część mowy" %}</th>
{% for pos in all_pos %}
<th style="width: 10em;" scope="col">{{ pos }}</th>
{% endfor %}
</tr>
</thead>
<tbody>
{% for status in all_statuses %}
<tr>
<th scope="row">{{ status }}</th>
{% for num in entry_stats|get_item:status %}
<td>{{ num }}</td>
{% endfor %}
</tr>
{% endfor %}
<tbody>
</table>
</div>
</div>
<div class="card mt-3">
<h5 class="card-header">{% trans "Liczba schematów" %}</h5>
<div class="card-body">
<table class="table table-sm table-striped mb-0">
<thead>
<tr>
{% for opinion, opinion_key, n in schema_stats %}
<th style="width: 10em;" scope="col">
{% if opinion_key != "all" %}<img src="/static/entries/img/{{ opinion_key }}.svg" width="12" height="12" alt="{{ opinion }}"> {% endif %}{{ opinion }}
</th>
{% endfor %}
</tr>
</thead>
<tbody>
<tr>
{% for opinion, opinion_key, n in schema_stats %}
<td>{{ n }}</td>
{% endfor %}
</tr>
<tbody>
</table>
</div>
</div>
<div class="card my-3">
<h5 class="card-header">{% trans "Liczba ram" %}</h5>
<div class="card-body">
<table class="table table-sm table-striped mb-0">
<thead>
<tr>
{% for opinion, opinion_key, n in frame_stats %}
<th scope="col">
{% if opinion_key != "all" %}<img src="/static/entries/img/{{ opinion_key }}.svg" width="12" height="12" alt="{{ opinion }}"> {% endif %}{{ opinion }}
</th>
{% endfor %}
</tr>
</thead>
<tbody>
<tr>
{% for opinion, opinion_key, n in frame_stats %}
<td>{{ n }}</td>
{% endfor %}
</tr>
<tbody>
</table>
</div>
</div>
{% endblock %}