{% load i18n %}

{% trans "Справка" %}

{% trans "База знаний портала: инструкции и ответы на частые вопросы" %}

{% trans "Предложить статью" %} {% trans "Поддержка IT" %}
{% if help_message == 'sent' %}
{% trans "Предложение отправлено на проверку. После одобрения администратором статья появится в справке." %}
{% endif %}
{% if help_query %}

{% blocktrans count counter=help_search_results|length %}Найдена {{ counter }} статья{% plural %}Найдено статей: {{ counter }}{% endblocktrans %} «{{ help_query }}»

{% if help_search_results %}
{% for article in help_search_results %}
{{ article.title }}
{{ article.category.title }}
{% endfor %}
{% else %}

{% trans "Ничего не найдено. Попробуйте другие слова или предложите новую статью." %}

{% endif %}
{% endif %}
{% for cat in help_categories %}
{% include "partials/help-icon.html" with icon=cat.icon %}
{{ cat.title }}
{{ cat.description }}
{% blocktrans count counter=cat.article_count %}{{ counter }} статья →{% plural %}{{ counter }} статей →{% endblocktrans %}
{% empty %}

{% trans "Категории пока не добавлены." %}

{% endfor %}
{% if help_featured %}
{% trans "Частые вопросы" %}
{% for article in help_featured %}
{{ article.title }}
{{ article.body|safe }}
{% trans "Открыть полностью" %} →
{% endfor %}
{% endif %} {% if help_my_contributions %}
{% trans "Мои предложения" %}
{% for c in help_my_contributions %} {% endfor %}
{% trans "Заголовок" %} {% trans "Тип" %} {% trans "Статус" %} {% trans "Дата" %}
{{ c.title }} {{ c.get_kind_display }} {% if c.status == 'pending' %} {{ c.get_status_display }} {% elif c.status == 'approved' %} {{ c.get_status_display }} {% else %} {{ c.get_status_display }} {% endif %} {% if c.status == 'rejected' and c.review_note %}
{{ c.review_note }}
{% endif %}
{{ c.created_at|date:"d.m.Y H:i" }}
{% endif %}