diff options
| author | historia <[not public]> | 2026-06-29 22:31:11 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-06-29 22:31:11 -0400 |
| commit | 069d3c1c81d71042706372df153254487a765dfc (patch) | |
| tree | d83a4a3954d2b8304f49d83e365f4c2b075b91eb /internal/admin/templates/layout.html | |
| parent | 6c5271fb085b4571a10f106391974c249cd84317 (diff) | |
| download | thehouseoficarus-069d3c1c81d71042706372df153254487a765dfc.tar.gz | |
feat: wip web admin for mapping and crud
Diffstat (limited to 'internal/admin/templates/layout.html')
| -rw-r--r-- | internal/admin/templates/layout.html | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/internal/admin/templates/layout.html b/internal/admin/templates/layout.html new file mode 100644 index 0000000..99c1f0d --- /dev/null +++ b/internal/admin/templates/layout.html @@ -0,0 +1,48 @@ +{{define "layout"}}<!DOCTYPE html> +<html lang="en"> +<head> +<meta charset="utf-8"> +<meta name="viewport" content="width=device-width,initial-scale=1"> +<title>THOI Admin{{if .Page}} — {{.Page}}{{end}}</title> +<link rel="stylesheet" href="/static/admin.css"> +<script src="/static/admin.js"></script> +<script src="/static/colorpicker.js"></script> +</head> +<body> +<nav class="nav"> + <a href="/" class="{{if eq .Page "map"}}active{{end}}">Map</a> + <a href="/editor/objects" class="{{if eq .Page "objects"}}active{{end}}">Objects</a> + <a href="/editor/items" class="{{if eq .Page "items"}}active{{end}}">Items</a> + <a href="/editor/mobs" class="{{if eq .Page "mobs"}}active{{end}}">Mobs</a> + <a href="/editor/drops" class="{{if eq .Page "drops"}}active{{end}}">Drops</a> + <a href="/editor/hazards" class="{{if eq .Page "hazards"}}active{{end}}">Hazards</a> + <a href="/editor/techs" class="{{if eq .Page "techs"}}active{{end}}">Techs</a> + <a href="/editor/courses" class="{{if eq .Page "courses"}}active{{end}}">Courses</a> + <a href="/editor/modules" class="{{if eq .Page "modules"}}active{{end}}">Modules</a> + <a href="/editor/players" class="{{if eq .Page "players"}}active{{end}}">Players</a> + <a href="/editor/dashboard" class="{{if eq .Page "dashboard"}}active{{end}}">Dashboard</a> + <a href="/editor/files" class="{{if eq .Page "files"}}active{{end}}">Files</a> + <div class="undo-bar"> + <button class="undo-btn" onclick="doUndo()" title="">⟲ Undo</button> + <button class="redo-btn" onclick="doRedo()" title="">⟳ Redo</button> + <span class="undo-label"></span> + </div> + <span style="font-size:11px;color:#888">| {{.Account}}</span> + <a href="/logout" style="font-size:11px">Logout</a> +</nav> +{{if eq .Page "map"}}{{template "body-map" .}} +{{else if eq .Page "objects"}}{{template "body-objects" .}} +{{else if eq .Page "items"}}{{template "body-items" .}} +{{else if eq .Page "mobs"}}{{template "body-mobs" .}} +{{else if eq .Page "drops"}}{{template "body-drops" .}} +{{else if eq .Page "hazards"}}{{template "body-hazards" .}} +{{else if eq .Page "techs"}}{{template "body-techs" .}} +{{else if eq .Page "courses"}}{{template "body-courses" .}} +{{else if eq .Page "modules"}}{{template "body-modules" .}} +{{else if eq .Page "players"}}{{template "body-players" .}} +{{else if eq .Page "dashboard"}}{{template "body-dashboard" .}} +{{else if eq .Page "files"}}{{template "body-files" .}} +{{else}}<p style="color:#888;text-align:center;margin-top:60px">Unknown page: {{.Page}}</p>{{end}} +</body> +</html> +{{end}} |
