Files
fnx_web/res/template/admin.html

35 lines
743 B
HTML
Raw Normal View History

2021-05-25 22:15:29 +02:00
{{define "admin"}}
<!DOCTYPE html>
2020-01-17 20:32:21 +01:00
<html lang="en">
2021-05-25 22:15:29 +02:00
{{if and .Authenticated .User.IsAdmin}}
<head>
{{template "meta_tags" "Administrator panel"}}
2020-10-26 21:35:41 +01:00
2021-05-25 22:15:29 +02:00
<script>
window.api_endpoint = '{{.APIEndpoint}}';
2022-10-11 14:21:06 +02:00
window.server_hostname = "{{.Hostname}}";
2021-05-25 22:15:29 +02:00
</script>
2022-10-11 14:42:24 +02:00
<script defer src='/res/svelte/admin_panel.js?v{{cacheID}}'></script>
2021-05-25 22:15:29 +02:00
</head>
<body>
2022-10-11 14:21:06 +02:00
{{template "menu" .}}
<div id="page_body" class="page_body"></div>
2021-05-25 22:15:29 +02:00
</body>
{{else}}
<head>
{{template "meta_tags" "Administrator panel"}}
</head>
<body>
{{template "page_top" .}}
2022-10-11 14:21:06 +02:00
<header>
<h1>Admin Panel</h1>
</header>
<div id="page_content" class="page_content">
;-)
</div>
2019-09-17 23:38:40 +02:00
{{template "page_bottom" .}}
2021-05-25 22:15:29 +02:00
</body>
{{end}}
</html>
{{end}}