Você não pode selecionar mais de 25 tópicos
Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
|
- <header class="top-header">
- <div class="header-left">
- <div class="breadcrumb">
- <a href="/admin/dashboard.html">首页</a>
- {% if breadcrumb %}
- {% for item in breadcrumb %}
- <span class="sep">/</span>
- {% if loop.last %}
- <span class="current">{{ item.name }}</span>
- {% else %}
- <a href="{{ item.url }}">{{ item.name }}</a>
- {% endif %}
- {% endfor %}
- {% else %}
- <span class="sep">/</span>
- <span class="current">{{ pageTitle }}</span>
- {% endif %}
- </div>
- </div>
- <div class="header-right">
- <button class="header-btn" title="刷新" onclick="location.reload()">
- <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polyline points="23 4 23 10 17 10"/><path d="M20.49 15a9 9 0 1 1-2.12-9.36L23 10"/></svg>
- </button>
- <button class="header-btn" title="全屏" onclick="toggleFullscreen()">
- <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polyline points="15 3 21 3 21 9"/><polyline points="9 21 3 21 3 15"/><line x1="21" y1="3" x2="14" y2="10"/><line x1="3" y1="21" x2="10" y2="14"/></svg>
- </button>
- <div class="header-avatar" id="userDropdown">
- <div class="avatar-placeholder">{{ adminUser.nickname[0] if adminUser.nickname else '管' }}</div>
- <span>{{ adminUser.nickname or adminUser.username or '管理员' }}</span>
- </div>
- </div>
- </header>
- <script>
- function toggleFullscreen() {
- if (!document.fullscreenElement) {
- document.documentElement.requestFullscreen();
- } else {
- document.exitFullscreen();
- }
- }
- </script>
|