{% extends "admin/base.html" %}

{% block title %}{{ title }} | {{ site_title|default:_('Django site admin') }}{% endblock %}

{% block branding %}
<h1 id="site-name"><a href="{% url 'admin:index' %}">{{ site_header|default:_('Django administration') }}</a></h1>
{% endblock %}

{% block nav-global %}
{% endblock %}

{% block userlinks %}
    {% load programmer_tags %}

    <!-- Уведомление о новых заявках -->
    {% get_unread_callbacks as unread_callbacks %}
    {% if unread_callbacks %}
    <a href="{% url 'admin:programmer_callbackrequest_changelist' %}" style="color: #dc3545; font-weight: bold;">
        🚨 {{ unread_callbacks }} новых заявок
    </a> /
    {% endif %}

    <a href="{% url 'callback_stats' %}">📊 Статистика заявок</a> /
    <a href="{% url 'statistics' %}">📈 Посещения</a> /
    {{ block.super }}
{% endblock %}