0
0
Fork 0
EnglishPal/app/templates/admin_index.html

59 lines
2.1 KiB
HTML
Raw Normal View History

2023-03-20 20:16:48 +08:00
<!DOCTYPE html>
<html lang="en">
2022-12-31 18:25:13 +08:00
<head>
2023-03-20 20:16:48 +08:00
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, initial-scale=1.0, minimum-scale=0.5, maximum-scale=3.0, user-scalable=yes" />
<meta name="format-detection" content="telephone=no" />
{{ yml['header'] | safe }}
{% if yml['css']['item'] %}
{% for css in yml['css']['item'] %}
<link href="{{ css }}" rel="stylesheet">
{% endfor %}
{% endif %}
{% if yml['js']['head'] %}
{% for js in yml['js']['head'] %}
<script src="{{ js }}"></script>
{% endfor %}
{% endif %}
2022-12-31 18:25:13 +08:00
</head>
<body class="container" style="width: 800px; margin: auto; margin-top:24px;">
2023-03-20 20:16:48 +08:00
<nav class="navbar navbar-expand-lg bg-light">
<div class="container-fluid">
<a class="navbar-brand" href="#">管理员 {{ username }} 您好!</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav"
2022-12-31 18:25:13 +08:00
aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
2023-03-20 20:16:48 +08:00
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" href="/{{ username }}">返回主页</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/logout">退出登录</a>
</li>
</ul>
</div>
2022-12-31 18:25:13 +08:00
</div>
2023-03-20 20:16:48 +08:00
</nav>
2022-12-31 18:25:13 +08:00
2023-03-20 20:16:48 +08:00
<div class="card" style="margin-top:24px;">
<div class="card-header">
请选择您需要的操作
2023-03-20 20:16:48 +08:00
</div>
<ul class="list-group list-group-flush">
<li class="list-group-item">
<div class="d-grid gap-2">
<a href="/admin/article" class="btn btn-outline-primary" type="button">管理文章</a>
<a href="/admin/user" class="btn btn-outline-primary" type="button">管理用户</a>
2022-12-31 18:25:13 +08:00
</div>
2023-03-20 20:16:48 +08:00
</li>
</ul>
2022-12-31 18:25:13 +08:00
</div>
</body>
2023-03-20 20:16:48 +08:00
</html>