
<div class="position-sticky pt-3 sidebar-sticky">
  <ul class="nav flex-column">
    {% if request.user.is_authenticated %}
        <p class="nav-link text-center m-0 p-0" title="Вы вошли как - {{ request.user }}">
          Добро пожаловать: <br>
          {{ request.user.first_name }}
        </p>
      <hr class="m-1">
    {% endif %}
        {% comment %} выводим меню {% endcomment %}
    {% for item in menu %}
      <li class="nav-item">
        <a class="nav-link {% if active == forloop.counter %} active {% endif %} " aria-current="page" href="/{{item.url_name}}">
          <span data-feather="{{ item.data_feather }}" class="align-text-bottom"></span>
          {{ item.title }}
        </a>
      </li>
    {% endfor %}
    <!-- <ul class="flex-column">
      <li>
        <a class="nav-link" href="/admin">
          <span data-feather="sliders" class="align-text-bottom"></span>
          подАдминка
      </li>
    </ul> -->
    <hr class="m-1">
    {% if request.user.is_authenticated %}
    <li class="nav-item">
      <a class="nav-link" href="{% url 'admin:index' %}">
        <span data-feather="sliders" class="align-text-bottom"></span>
        Админка
      </a>
    </li>
    <li>
      <a class="nav-link" href="/admin/logout/">
        <span data-feather="log-out" class="align-text-bottom"></span>
        Выйти
      </a>
    </li>
    {% else %}
    <li class="nav-item">
      <a class="nav-link" href="{% url 'login' %}">
        <span data-feather="log-in" class="align-text-bottom"></span>
        Войти
      </a>
    </li>
    {% endif %}
    <hr class="m-1">

  </ul>
</div>
