Skip to content
Snippets Groups Projects
Select Git revision
  • 22148d8f313eff5cc4d66d7b7efb66c346243197
  • master default protected
  • vertical_relations
  • lu_without_semantic_frames
  • hierarchy
  • additional-unification-filters
  • v0.1.1
  • v0.1.0
  • v0.0.9
  • v0.0.8
  • v0.0.7
  • v0.0.6
  • v0.0.5
  • v0.0.4
  • v0.0.3
  • v0.0.2
  • v0.0.1
17 results

dictionary_statistics.html

Blame
  • dictionary_statistics.html 2.85 KiB
    {% 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 %}