dictionary_statistics.html 2.84 KB
{% 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 %}