Files
fnx_web/res/template/admin.html

35 lines
860 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"}}
{{template "user_style" .}}
2020-10-26 21:35:41 +01:00
2021-05-25 22:15:29 +02:00
<script>
window.api_endpoint = '{{.APIEndpoint}}';
window.highlight_color = '#{{.Style.HighlightColor.RGB}}';
</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}}
</html>
{{end}}