2021-05-25 22:15:29 +02:00
|
|
|
{{define "admin"}}
|
2019-02-25 22:53:09 +01:00
|
|
|
<!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"}}
|
|
|
|
{{template "user_style" .}}
|
2021-10-26 22:15:01 +02:00
|
|
|
{{template "user_style_js" . }}
|
2020-10-26 21:35:41 +01:00
|
|
|
|
2021-05-25 22:15:29 +02:00
|
|
|
<script>
|
|
|
|
window.api_endpoint = '{{.APIEndpoint}}';
|
|
|
|
</script>
|
|
|
|
<link rel='stylesheet' href='/res/svelte/admin_panel.css'>
|
|
|
|
<script defer src='/res/svelte/admin_panel.js'></script>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
{{template "page_top" .}}
|
2021-09-21 21:39:28 +02:00
|
|
|
<h1>Admin Panel</h1>
|
2021-05-25 22:15:29 +02:00
|
|
|
<div id="page_content" class="page_content"></div>
|
|
|
|
{{template "page_bottom" .}}
|
|
|
|
</body>
|
|
|
|
{{else}}
|
|
|
|
<head>
|
|
|
|
{{template "meta_tags" "Administrator panel"}}
|
|
|
|
{{template "user_style" .}}
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
{{template "page_top" .}}
|
|
|
|
<div 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}}
|
2019-02-25 22:53:09 +01:00
|
|
|
</html>
|
|
|
|
{{end}}
|