2024-08-09 09:49:45 -04:00
|
|
|
{{define "theme-server-status/menu"}}
|
|
|
|
<header role="navigation" class="navbar navbar-inverse navbar-fixed-top">
|
|
|
|
<div class="container-fluid">
|
2024-02-25 10:16:57 -05:00
|
|
|
<div class="navbar-header">
|
|
|
|
<button data-target=".navbar-collapse" data-toggle="collapse" class="navbar-toggle" type="button">
|
|
|
|
<span class="sr-only">Toggle navigation</span>
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
</button>
|
|
|
|
<a href="/" class="navbar-brand">
|
|
|
|
<img src="/static/logo.svg" style="height: 2rem;display: inline-block;">
|
|
|
|
{{.Conf.Site.Brand}}
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<nav id="navbar" class="navbar-collapse collapse">
|
|
|
|
<ul class="nav navbar-nav">
|
|
|
|
<li><a href="/"><i class="home icon"></i>{{tr "Home" }}</a></li>
|
|
|
|
<template v-if="isMobile">
|
2023-11-07 00:46:28 -05:00
|
|
|
<li class="dropdown">
|
2024-02-25 10:16:57 -05:00
|
|
|
<a data-toggle="dropdown"><i class="bi bi-gear-wide-connected" style="position:relative;top:1px;margin-right:3px;font-size:1.1rem;"></i>{{tr "Feature" }}<b class="caret"></b></a>
|
|
|
|
<ul class="dropdown-menu" style="min-width:100px;">
|
|
|
|
<li><a href="/service"><i class="rss icon"></i>{{tr "Services" }}</a></li>
|
2024-03-02 02:20:32 -05:00
|
|
|
<li><a href="/network"><i class="bi bi-hdd-network icon"></i>{{tr "NetworkSpiter"}}</a></li>
|
2023-11-07 00:46:28 -05:00
|
|
|
</ul>
|
|
|
|
</li>
|
2024-02-25 10:16:57 -05:00
|
|
|
</template>
|
|
|
|
<template v-else>
|
|
|
|
<li><a href="/service"><i class="rss icon"></i>{{tr "Services" }}</a></li>
|
|
|
|
<li><a href="/network"><i class="bi bi-hdd-network icon"></i>{{tr "NetworkSpiter"}}</a></li>
|
|
|
|
</template>
|
2024-03-03 20:36:17 -05:00
|
|
|
{{ if not .Conf.DisableSwitchTemplateInFrontend }}
|
|
|
|
<li class="dropdown">
|
|
|
|
<a data-toggle="dropdown"><i class="bi bi-incognito" style="position:relative;top:1px;margin-right:3px;font-size:1.2rem;vertical-align:top;"></i>{{tr "Template" }}<b class="caret"></b></a>
|
|
|
|
<ul class="dropdown-menu">
|
|
|
|
<li v-for="(item, index) in adaptedTemplates" :key="index">
|
|
|
|
<a @click="toggleTemplate(item.key)">
|
|
|
|
<i :class="item.icon + ' icon'" style="font-size:1em"></i>@#item.name#@
|
|
|
|
<i class="check icon" v-if="preferredTemplate === item.key"></i>
|
|
|
|
</a>
|
|
|
|
</li>
|
2024-06-14 06:02:55 -04:00
|
|
|
<li v-if="defaultTemplate === 'custom'">
|
|
|
|
<a @click="toggleTemplate('custom')" class="item">
|
|
|
|
<i class="expand icon" style="font-size:1em"></i>Custom
|
|
|
|
</a>
|
|
|
|
</li>
|
2024-03-03 20:36:17 -05:00
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
{{ end }}
|
2024-02-25 10:16:57 -05:00
|
|
|
</ul>
|
|
|
|
<ul class="nav navbar-nav navbar-right">
|
|
|
|
{{if .Admin}}
|
|
|
|
<li class="dropdown">
|
|
|
|
<a data-toggle="dropdown"><i class="user icon"></i>{{.Admin.Name}}<b class="caret"></b></a>
|
|
|
|
<ul class="dropdown-menu" style="margin-bottom:20px;">
|
|
|
|
<li><a href="/server"><i class="terminal icon"></i>{{tr "AdminPanel" }}</a></li>
|
|
|
|
<li><a @click="logOut({{.Admin.ID}})"><i class="logout icon"></i>{{tr "Logout"}}</a></li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
{{else}}
|
|
|
|
<li><a href="/login"><i class="sign-in icon"></i>{{tr "Login" }}</a></li>
|
|
|
|
{{end}}
|
|
|
|
</ul>
|
|
|
|
</nav>
|
2023-11-07 00:46:28 -05:00
|
|
|
</div>
|
2024-02-25 10:16:57 -05:00
|
|
|
</header>
|
2024-09-06 11:31:38 -04:00
|
|
|
<section class="nezha">
|
2023-12-07 08:58:42 -05:00
|
|
|
{{end}}
|
2024-02-12 01:16:04 -05:00
|
|
|
|