можешь сделать рефакторинг кода {%- if parametrenter=='homeworks'%} {% from…
- User
можешь сделать рефакторинг кода {%- if parametr_enter=='homeworks'%} {% from "components/my_homework.html" import my_homework with context %} {%- elif parametr_enter=='my_board' %} {% from "components/board_add.html" import board_add with context %} {%- elif parametr_enter=='tasks_worksheet' %} {% from "components/query_of_tasks.html" import query_of_tasks with context %} {%- elif parametr_enter=='my_friends' %} {% from "components/classmates.html" import classmates with context %} {%- elif parametr_enter=='profile_info' %} {% from "components/profile_information.html" import profile_information with context %} {%- elif parametr_enter=='calendar' %} {% from "components/student_calendar.html" import student_calendar with context %} {%- elif parametr_enter=='uved' %} {% from "components/uved_studient.html" import uved_studient with context %} {%- elif parametr_enter=='my_files' %} {% from "components/my_files.html" import my_files with context %} {%- endif %}
{% extends 'base.html' %} {% block title %}Мой личный кабинет{% endblock %} {% block meta_1 %}
{% block meta_2 %}
{%- if parametr_enter=='my_friends'%} <link href="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/css/select2.min.css" rel="stylesheet" /> {%- endif %} {%- if parametr_enter=='calendar'%} <link rel="stylesheet" href="{{ url_for('static', filename='/css/fc_calendar.css') }}"> <link rel="stylesheet" href="https://code.jquery.com/ui/1.13.2/themes/base/jquery-ui.css" rel="stylesheet"> {%- endif %}{% endblock %}
{% block content %}
- Assistant