DBBigWork/ebookman/templates/base.html
2022-12-12 23:27:45 +08:00

44 lines
1.4 KiB
HTML

<!doctype html>
<title>{% block title %}{% endblock %}</title>
<link rel="stylesheet" href="{{ url_for('static', filename='spectre-exp.min.css') }}">
<link rel="stylesheet" href="{{ url_for('static', filename='spectre-icons.min.css') }}">
<link rel="stylesheet" href="{{ url_for('static', filename='spectre.min.css') }}">
<style>
html, body{
margin: 0;
padding: 0;
min-height: 100vh;
}
</style>
<header class="navbar">
<section class="navbar-section">
</section>
<section class="navbar-center">
<h1>电子书管理系统</h1>
</section>
<section class="navbar-section">
{% if g.user %}
<span class="chip">{{ g.user['user_name'] }}</span>
<a class="btn btn-link" href="{{ url_for('auth.logout') }}">登出</a>
{% else %}
<a class="btn btn-link" href="{{ url_for('auth.loginadmin') }}">管理员登陆</a>
<a class="btn btn-link" href="{{ url_for('auth.loginuser') }}">用户登陆</a>
{% endif %}
</section>
</header>
<section class="content" style="min-height: 80vh;">
<header>
{% block header %}{% endblock %}
</header>
{% for message in get_flashed_messages() %}
<div class="flash">{{ message }}</div>
{% endfor %}
{% block content %}{% endblock %}
</section>
<footer style="height: 3em;">
<div class="text-center">
Made with Madness by Catfood <br> Rendered @ {{cur_time}}
</div>
</footer>