2023-11-07 00:46:28 -05:00
|
|
|
{{define "theme-server-status/content-nav"}}
|
|
|
|
<div role="navigation" class="navbar navbar-inverse navbar-fixed-top">
|
|
|
|
<div class="navbar-inner">
|
2023-11-09 04:31:26 -05:00
|
|
|
<div class="container pl-md-unset">
|
2023-11-07 00:46:28 -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>
|
2023-11-09 04:31:26 -05:00
|
|
|
<a href="/" class="navbar-brand pl-md-unset">
|
2023-11-08 00:17:42 -05:00
|
|
|
<img src="/static/logo.svg?v20210804" style="height: 2rem;display: inline-block;">
|
|
|
|
{{.Conf.Site.Brand}}
|
|
|
|
</a>
|
2023-11-07 00:46:28 -05:00
|
|
|
</div>
|
|
|
|
<div class="navbar-collapse collapse">
|
|
|
|
<ul class="nav navbar-nav">
|
2023-11-07 09:15:13 -05:00
|
|
|
<li><a href="/">{{tr "Home" }}</a></li>
|
|
|
|
<li><a href="/service">{{tr "Services" }}</a></li>
|
|
|
|
</ul>
|
|
|
|
<ul class="nav navbar-nav navbar-right">
|
2023-11-07 00:46:28 -05:00
|
|
|
<li class="dropdown">
|
2023-11-07 09:15:13 -05:00
|
|
|
<a data-toggle="dropdown" href="#">{{tr "Menu" }}<b class="caret"></b></a>
|
2023-11-07 00:46:28 -05:00
|
|
|
<ul class="dropdown-menu">
|
|
|
|
{{if .Admin}}
|
|
|
|
<li><a href="/server">{{tr "AdminPanel" }} ({{.Admin.Name}})</a></li>
|
|
|
|
{{else}}
|
|
|
|
<li><a href="/login">{{tr "Login" }}</a></li>
|
|
|
|
{{end}}
|
2023-11-07 09:56:59 -05:00
|
|
|
<li><a href="#" @click="setSystemTheme">{{tr "FollowSystem" }}
|
2023-11-07 09:15:13 -05:00
|
|
|
<span style="color: #fff" v-if="isSystemTheme"> ✔️</span></a>
|
2023-11-07 00:46:28 -05:00
|
|
|
</li>
|
|
|
|
<li><a href="#" @click="setTheme('dark', true)">{{tr "DarkMode" }}
|
2023-11-07 09:15:13 -05:00
|
|
|
<span v-if="theme === 'dark' && !isSystemTheme"> ✔️</span></a>
|
2023-11-07 00:46:28 -05:00
|
|
|
</li>
|
|
|
|
<li><a href="#" @click="setTheme('light', true)">{{tr "LightMode" }}
|
2023-11-07 09:15:13 -05:00
|
|
|
<span v-if="theme === 'light' && !isSystemTheme"> ✔️</span></a>
|
2023-11-07 00:46:28 -05:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2023-12-07 08:58:42 -05:00
|
|
|
{{end}}
|