Files
pages/templates/pages/public_tree.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

7 lines
2.5 KiB
Go Template

{{ define "public_tree.gohtml" }}<!doctype html><html lang="{{ .Locale }}"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>{{ T "tree.title" }} · {{ .WikiName }}</title>
<meta name="robots" content="noindex"><link rel="stylesheet" href="/static/css/main.css"><link rel="stylesheet" href="/static/css/theme/base.css"><link rel="stylesheet" href="{{ .ThemeCSS }}"></head>
<body class="{{ .Theme }}"><main class="public-document">{{ template "public-navigation" . }}<section id="public-content" tabindex="-1"><div class="public-heading"><h1>{{ if .Directory }}{{ T "public.navigation.browse" }}{{ else }}{{ T "tree.title" }}{{ end }}</h1><a href="{{ if .Directory }}{{ .PublicTreeHref }}{{ else }}{{ .PublicFolderHref }}{{ end }}">{{ if .Directory }}{{ T "tree.title" }}{{ else }}{{ T "public.navigation.browse" }}{{ end }}</a></div><p class="public-notice">{{ T "public.navigation.only_published" }}</p>
{{ if .Directory }}{{ if .PublicPreviousBatch }}<a href="{{ .PublicPreviousBatch }}">← {{ T "public.navigation.previous_batch" }}</a>{{ end }}<section class="children-async" data-children-src="{{ .PublicChildrenSource }}" data-public-children-ready>{{ .PublicChildren }}</section>
{{ else }}<div class="public-tree-tools" data-public-tree-tools hidden><label>{{ T "public.navigation.filter" }} <input type="search" data-public-tree-filter autocomplete="off"></label><button type="button" data-public-expand>{{ T "tree.expand_all" }}</button><button type="button" data-public-collapse>{{ T "tree.collapse_all" }}</button></div>
<nav class="public-tree" data-public-tree aria-label="{{ T "tree.title" }}">{{ range .Nodes }}<div class="public-tree-row" style="--depth:{{ .Depth }}" data-public-tree-path="{{ .Path }}" data-depth="{{ .Depth }}">{{ if .HasChildren }}<button type="button" data-public-tree-toggle aria-expanded="true" aria-label="{{ .Name }}" hidden>▾</button>{{ else }}<span class="public-tree-spacer" aria-hidden="true"></span>{{ end }}<a class="public-tree-name" href="{{ .Href }}">{{ if .IsDir }}📁{{ else }}📄{{ end }} {{ .Name }}</a>{{ if .HasChildren }}<a class="public-tree-folder" href="{{ .FolderHref }}" title="{{ T "public.navigation.browse" }}" aria-label="{{ T "public.navigation.browse" }}: {{ .Name }}">▤</a>{{ end }}</div>{{ else }}<p>{{ T "public.navigation.empty" }}</p>{{ end }}</nav><p data-public-tree-no-match hidden role="status">{{ T "public.navigation.no_match" }}</p>{{ end }}</section></main><script src="/static/js/public-navigation.js?v=3" defer></script></body></html>{{ end }}