Источник шаблона: core/mainpage.html

{% extends 'core/base.html' %} {% load static %} {% get_static_prefix as STATIC %} {% block header %} <nav class="navbar navbar-expand-lg navbar-light"> <div class="navbar-brand mr-auto"> <img src="{{ STATIC }}logo_horizontal.png" class="img-responsive img-rounded" alt="Логотип" style="width: 150px;"> </div> <ul class="navbar-nav"> <li class="nav-item"> <a class="nav-link" href="{% url 'index' %}">Главная</a> </li> <li class="nav-item"> <a class="nav-link" href="{% url 'search_coach' %}">Тренеры</a> </li> <li class="nav-item"> <a class="nav-link" href="{% url 'search_course' %}">Программы</a> </li> <li class="nav-item"> {% if request.user.is_authenticated %} <a class="nav-link" href="{% url 'users_myprograms' %}">{{ request.user.email }}</a> {% else %} <a class="nav-link" href="{% url 'login' %}">Войти</a> {% endif %} </li> </ul> </nav> {% endblock %}