{# --- 导航栏块 --- #} {% block navbar %}
数据平台
{% if current_user.is_authenticated %}
{{ search_form.hidden_tag() }}
{{ search_form.q(class="form-control border-end-0 bg-light", placeholder="搜索...", id="searchInput", autocomplete="off") }}
{% endif %}
{% if current_user.is_anonymous %}
登录
注册
{% else %}
仪表盘
{% if current_user.is_admin() %}
管理面板
{% elif current_user.is_researcher() %}
研究管理
{% endif %}
{{ current_user.username[0] | upper }}
{{ current_user.username }}
登出
{% endif %}
{% endblock %} {# --- 主内容块 --- #}
{# Flash 消息 #} {% with messages = get_flashed_messages(with_categories=true) %} {% if messages %} {% for category, message in messages %}
{{ message }}
{% endfor %} {% endif %} {% endwith %} {# 子模板将在这里填充内容 #} {% block content %} {% endblock %}
{# --- 页脚块 --- #} {# --- 交互组件 --- #}
Loading...
请稍候...
正在处理您的请求