36 lines
818 B
HTML
36 lines
818 B
HTML
{{define "admin"}}
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
{{if and .Authenticated .User.IsAdmin}}
|
|
<head>
|
|
{{template "meta_tags" "Administrator panel"}}
|
|
|
|
<script>
|
|
window.api_endpoint = '{{.APIEndpoint}}';
|
|
window.server_hostname = "{{.Hostname}}";
|
|
</script>
|
|
<link rel='stylesheet' href='/res/svelte/admin_panel.css?v{{cacheID}}'>
|
|
<script defer src='/res/svelte/admin_panel.js?v{{cacheID}}'></script>
|
|
</head>
|
|
<body>
|
|
{{template "menu" .}}
|
|
<div id="page_body" class="page_body"></div>
|
|
</body>
|
|
{{else}}
|
|
<head>
|
|
{{template "meta_tags" "Administrator panel"}}
|
|
</head>
|
|
<body>
|
|
{{template "page_top" .}}
|
|
<header>
|
|
<h1>Admin Panel</h1>
|
|
</header>
|
|
<div id="page_content" class="page_content">
|
|
;-)
|
|
</div>
|
|
{{template "page_bottom" .}}
|
|
</body>
|
|
{{end}}
|
|
</html>
|
|
{{end}}
|