mirror of
https://github.com/nezhahq/nezha.git
synced 2025-01-23 13:18:13 -05:00
25 lines
926 B
HTML
Vendored
25 lines
926 B
HTML
Vendored
{{define "theme-default/footer"}}
|
|
</div>
|
|
<div class="ui inverted vertical footer segment">
|
|
<div class="ui center aligned is-size-7 container">
|
|
<b>© <a style="color: white;" href="/">{{.Conf.Site.Brand}}</a></b> | <small>Powered by <a
|
|
href="https://github.com/naiba/nezha" style="color: white;" target="_blank">{{tr "NezhaMonitoring"}}</a>
|
|
{{.Version}}</small>
|
|
</div>
|
|
</div>
|
|
{{ if not .Conf.DisableSwitchTemplateInFrontend }}
|
|
<script>
|
|
function showSwitchTemplate(list, currentBackendTheme) {
|
|
// console.log(list, currentBackendTheme);
|
|
// console.log("currentBackendTheme:",currentBackendTheme);
|
|
}
|
|
showSwitchTemplate({{ .Themes }}, {{ .Conf.Site.Theme }})
|
|
document.documentElement.setAttribute('nz-theme', window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light')
|
|
</script>
|
|
{{ end }}
|
|
<script>
|
|
</script>
|
|
</body>
|
|
</html>
|
|
{{end}}
|