34 lines
837 B
HTML
34 lines
837 B
HTML
{{define "admin"}}
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
{{if and .Authenticated .User.IsAdmin}}
|
|
<head>
|
|
{{template "meta_tags" "Administrator panel"}}
|
|
{{template "user_style" .}}
|
|
{{template "user_style_js" . }}
|
|
|
|
<script>
|
|
window.api_endpoint = '{{.APIEndpoint}}';
|
|
</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 "page_top" .}}
|
|
<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>
|
|
{{template "page_bottom" .}}
|
|
</body>
|
|
{{end}}
|
|
</html>
|
|
{{end}}
|