{% extends 'bootstrap/base.html' %} {% import 'bootstrap/wtf.html' as wtf %} {% set navigation_pages = [ (url_for('main.index'), 'index', ' Home'), (url_for('stud.lecture_view_all'), 'lectures', ' Lectures'), ] -%} {% if current_user.is_authenticated %} {% if current_user.has_level(g.Level.TEACHER) %} {% do navigation_pages.append( ('#', 'report', ' Reports') ) %} {% else %} {% do navigation_pages.append( (url_for('stud.report', student_id=current_user.id), 'report', ' Reports') ) %} {% endif %} {% endif %} {% set active_page = active_page|default('index') -%} {% block title %}{% block page_title %}{% endblock %} - PyEdu{% endblock %} {% block navbar %} {% endblock %} {% block content %}
{% for category, message in get_flashed_messages(with_categories=True) %}
{{ message|safe }}
{% endfor %} {% block page %} {% endblock %}
{% block mn_page %} {% endblock %}
{% block page_2 %} {% endblock %}
{% endblock %} {% block scripts %} {{ super() }} {{ moment.include_moment() }} {% endblock %}