Files
pages/templates/pages/object_editor.gohtml
T
Anya Tokugawa c1175d389f Implement Knowledge City platform, organizer and DAV integration
Capture accumulated application, UI, CLI, regression tests and design documentation changes, including task project mapping and default CalDAV list naming.

Keep deployment data, backups, local credentials and build artifacts out of Git. Move the Compose enrollment token to an ignored local environment file.
2026-09-27 14:44:43 +09:00

91 lines
1.2 KiB
Go Template

{{ define "object_editor.gohtml" }}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>{{ .Title }}</title>
<link rel="stylesheet" href="/static/css/main.css">
<link rel="stylesheet" href="/static/css/modes.css">
<link rel="stylesheet" href="/static/css/theme/base.css">
<link rel="stylesheet" href="{{ .ThemeCSS }}">
</head>
<body class="mode-editor">
<header class="topbar">
<div class="brand">
<a href="/">{{ .WikiName }}</a>
</div>
<nav>
{{ range .NavItems }}
<a href="{{ .ResolvedHref }}">{{ .Label }}</a>
{{ end }}
</nav>
{{ template "auth-menu" . }}</header>
<main class="container">
<section>
<div class="path-label">
Object:
<code>{{ .ObjectURI }}</code>
</div>
<div class="editor-toolbar">
<button
type="button"
data-editor-action="save"
>
Save
</button>
</div>
<div class="editor-grid">
<textarea
id="editor"
class="editor"
>{{ .Body }}</textarea>
<article
id="preview"
class="preview"
></article>
</div>
<input
type="hidden"
id="object-uuid"
value="{{ .ObjectUUID }}"
>
<input
type="hidden"
id="edit-type"
value="html"
>
<input
type="hidden"
id="page-language"
value="{{ .PageLanguage }}"
>
</section>
</main>
<script src="/static/js/editor.js?v=inert-v1"></script>
</body>
</html>
{{ end }}