Unify organizer navigation and add personal widget dashboard
Build and publish container images / images (push) Successful in 12m38s
Release container images / release (push) Successful in 23s

This commit is contained in:
Anya Tokugawa committed 2026-11-04 00:05:16 +09:00
1 parent a9249009f0
commit 6ba30bc9f4
44 files changed
+843 -54

No files matched your search

+2 -2
View File
@@ -1,9 +1,9 @@
{{ define "calendar.gohtml" }}<!doctype html>
<html lang="{{ .Locale }}"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>{{ .Title }} · {{ .WikiName }}</title>
<link rel="stylesheet" href="/static/css/main.css"><link rel="stylesheet" href="/static/css/theme/base.css"><link rel="stylesheet" href="{{ .ThemeCSS }}"><link rel="stylesheet" href="/static/css/calendar.css?v=9"><link rel="stylesheet" href="/static/css/calendar-mobile.css?v=1"></head>
<body class="mode-view"><header class="topbar"><div class="brand"><a href="/">{{ .WikiName }}</a></div><nav><a href="/v/plan">{{ T "calendar.title" }}</a>{{ if .TasksEnabled }} <a href="/v/plan/today">{{ T "tasks.title" }}</a>{{ end }}</nav>{{ template "auth-menu" . }}</header>
<body class="mode-view organizer-page"><header class="topbar"><div class="brand"><a href="/">{{ .WikiName }}</a></div>{{ template "auth-menu" . }}</header>{{ template "organizer-nav" . }}
<main id="calendar-app" class="calendar-app" data-actor="{{ .CalendarActor }}" data-timezone="{{ .CalendarTimezone }}">
<header class="calendar-toolbar"><h1 id="calendar-heading">Calendar</h1><select id="calendar-select" aria-label="Calendar"></select><button id="calendar-create" type="button" aria-label="Create calendar">+</button><button id="calendar-settings" type="button" aria-label="Calendar settings">⚙</button><button id="calendar-refresh" type="button" aria-label="Refresh">↻</button><a id="calendar-new" href="/v/event/new">+</a></header>
<nav id="calendar-nav" class="calendar-toolbar"></nav><p id="calendar-status" role="status" aria-live="polite"></p><div id="calendar-content"></div>
<dialog id="calendar-dialog"><form id="calendar-form"><header><h2 id="calendar-dialog-title"></h2><button type="button" data-close aria-label="Close">×</button></header><div id="calendar-fields"></div><p id="calendar-form-error" role="alert"></p><footer><button type="submit" id="calendar-submit"></button><button type="button" data-close id="calendar-cancel"></button></footer></form></dialog>
</main><link rel="stylesheet" href="/static/css/dav-settings.css?v=3"><script src="/static/js/calendar.js?v=13" defer></script><script src="/static/js/task-dav-settings.js?v=4" defer></script></body></html>{{ end }}
</main><link rel="stylesheet" href="/static/css/dav-settings.css?v=3"><script src="/static/js/calendar.js?v=14" defer></script><script src="/static/js/task-dav-settings.js?v=4" defer></script></body></html>{{ end }}
+1 -1
View File
@@ -56,7 +56,7 @@
{{ range .ConfigGroups }}
<details class="config-nav-group" data-config-group="{{ .ID }}" open>
<summary>{{ .Label }}</summary>
{{ range .Panels }}<a href="/-/sys/config?panel={{ .ID }}" data-panel="{{ .ID }}">{{ .Label }}</a>{{ end }}
{{ range .Panels }}<a href="/-/sys/config?panel={{ .ID }}" {{ if ne .ID "organizer" }}data-panel="{{ .ID }}"{{ end }}>{{ .Label }}</a>{{ end }}
</details>
{{ end }}
</nav>
+3 -3
View File
@@ -4,13 +4,13 @@
<title>{{ .Title }} - {{ .WikiName }}</title>
<link rel="stylesheet" href="/static/css/main.css"><link rel="stylesheet" href="/static/css/theme/base.css"><link rel="stylesheet" href="{{ .ThemeCSS }}">
<link rel="stylesheet" href="/static/css/task-productivity.css?v=1"><link rel="stylesheet" href="/static/css/contacts.css?v=2"><link rel="stylesheet" href="/static/css/dav-settings.css?v=3">
</head><body class="mode-view">
</head><body class="mode-view organizer-page">
<header class="topbar"><div class="brand"><a href="/">{{ .WikiName }}</a></div>{{ template "auth-menu" . }}</header>
{{ template "organizer-nav" . }}
<main id="contacts-app" data-writable="{{ .ContactWritable }}">
<nav><a href="/v/plan/today">Tasks</a> · <a href="/v/plan/tasks/settings">Settings</a></nav>
<h1></h1><p id="contacts-status" role="status" aria-live="polite"></p><section id="contacts-controls"></section>
<div class="contacts-layout"><section id="contacts-list"></section><section id="contact-editor"></section></div></main>
<script src="/static/js/contacts.js?v=2" defer></script>
<script src="/static/js/contacts.js?v=3" defer></script>
<script src="/static/js/contact-history.js?v=1" defer></script>
<script src="/static/js/task-dav-settings.js?v=4" defer></script>
</body></html>{{ end }}
+2 -1
View File
@@ -10,7 +10,7 @@
<link rel="stylesheet" href="/static/css/theme/base.css">
<link rel="stylesheet" href="/static/css/content-viewer.css">
<link rel="stylesheet" href="/static/css/home.css?v=11">
<link rel="stylesheet" href="/static/css/home.css?v=12">
<link rel="stylesheet" href="{{ .ThemeCSS }}">
<script defer src="/static/js/content-viewer.js"></script>
<script defer src="/static/js/home-type-search.js?v=1"></script>
@@ -39,6 +39,7 @@
{{ template "auth-menu" . }}</header>
<main class="container">
{{ template "organizer-nav" . }}
{{ template "home-bookmarks" . }}
<section>
@@ -0,0 +1,7 @@
{{ define "organizer_dashboard.gohtml" }}<!doctype html>
<html lang="{{ .Locale }}"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>{{ T "organizer.dashboard" }} · {{ .WikiName }}</title><link rel="stylesheet" href="/static/css/main.css"><link rel="stylesheet" href="/static/css/theme/base.css"><link rel="stylesheet" href="{{ .ThemeCSS }}"><link rel="stylesheet" href="/static/css/task-productivity.css?v=2"><link rel="stylesheet" href="/static/css/organizer.css?v=1"></head>
<body class="mode-view organizer-page"><header class="topbar"><div class="brand"><a href="/">{{ .WikiName }}</a></div>{{ template "auth-menu" . }}</header>
{{ template "organizer-nav" . }}
<main id="organizer-dashboard" data-writable="{{ .TaskWritable }}" data-calendar="{{ .CalendarEnabled }}" data-today="{{ .Today }}" data-timezone="{{ .Timezone }}">
<header class="dashboard-toolbar"><div><h1>{{ T "organizer.dashboard" }}</h1><small>{{ .Today }} · {{ .Timezone }}</small></div><div id="dashboard-controls"></div></header><p id="dashboard-status" role="status" aria-live="polite"></p><div id="dashboard-grid"></div>
</main><script src="/static/js/organizer-dashboard.js?v=1" defer></script><script src="/static/js/task-productivity.js?v=2" defer></script></body></html>{{ end }}
@@ -0,0 +1,8 @@
{{ define "organizer_settings.gohtml" }}<!doctype html>
<html lang="{{ .Locale }}"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>{{ T "organizer.settings" }} · {{ .WikiName }}</title><link rel="stylesheet" href="/static/css/main.css"><link rel="stylesheet" href="/static/css/theme/base.css"><link rel="stylesheet" href="{{ .ThemeCSS }}"><link rel="stylesheet" href="/static/css/config.css"><link rel="stylesheet" href="/static/css/task-productivity.css?v=2"><link rel="stylesheet" href="/static/css/organizer.css?v=1"></head>
<body class="mode-config organizer-page"><header class="topbar"><div class="brand"><a href="/">{{ .WikiName }}</a></div>{{ template "auth-menu" . }}</header>{{ template "organizer-nav" . }}
<main class="config-main"><div class="config-layout"><aside class="config-sidebar"><nav class="sidebar-nav"><a href="/-/sys/config?panel=organizer" aria-current="page">{{ T "organizer.settings" }}</a>{{ if .TasksEnabled }}<a href="#task-productivity">{{ T "tasks.title" }}</a>{{ end }}{{ if .CalendarEnabled }}<a href="#organizer-calendar-defaults">{{ T "organizer.calendar_defaults" }}</a>{{ end }}{{ if .ContactsEnabled }}<a href="/v/plan/contacts">{{ T "organizer.contacts" }} ↗</a>{{ end }}{{ if .AuthIsAdmin }}<a href="/-/sys/config">{{ T "config.title" }} ↗</a>{{ end }}</nav></aside>
<section class="organizer-settings-content"><h1>{{ T "organizer.settings" }}</h1><p>{{ T "organizer.private" }}</p>
{{ if .TasksEnabled }}<section id="task-productivity" data-view="settings" data-writable="{{ .TaskWritable }}"><h2></h2><p id="productivity-status" role="status" aria-live="polite"></p><div id="productivity-content"></div></section>{{ end }}
{{ if .CalendarEnabled }}<section id="organizer-calendar-defaults" data-writable="{{ .TaskWritable }}"><h2>{{ T "organizer.calendar_defaults" }}</h2><p role="status"></p><div data-calendar-defaults></div></section>{{ end }}
</section></div></main><script src="/static/js/task-productivity.js?v=2" defer></script><script src="/static/js/organizer-settings.js?v=1" defer></script></body></html>{{ end }}
+1 -1
View File
@@ -13,7 +13,7 @@
<link rel="stylesheet" href="/static/css/content-viewer.css">
<link rel="stylesheet" href="/static/css/city-graph.css">
<link rel="stylesheet" href="{{ .ThemeCSS }}">
{{ if .IsHome }}<link rel="stylesheet" href="/static/css/home.css?v=11">{{ end }}
{{ if .IsHome }}<link rel="stylesheet" href="/static/css/home.css?v=12">{{ end }}
<script defer src="/static/js/content-viewer.js"></script>
<script defer src="/static/js/viewer-shortcuts.js"></script>
{{ if eq .ContentView.Kind "code" }}
+1 -1
View File
@@ -1,4 +1,4 @@
{{ define "periodical.gohtml" }}<!doctype html><html lang="{{ .Locale }}"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>{{ .Title }} · {{ .WikiName }}</title><link rel="stylesheet" href="/static/css/main.css"><link rel="stylesheet" href="/static/css/theme/base.css"><link rel="stylesheet" href="{{ .ThemeCSS }}"><link rel="stylesheet" href="/static/css/home.css?v=11"><link rel="stylesheet" href="/static/css/periodicals.css?v=6"></head>
{{ define "periodical.gohtml" }}<!doctype html><html lang="{{ .Locale }}"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>{{ .Title }} · {{ .WikiName }}</title><link rel="stylesheet" href="/static/css/main.css"><link rel="stylesheet" href="/static/css/theme/base.css"><link rel="stylesheet" href="{{ .ThemeCSS }}"><link rel="stylesheet" href="/static/css/home.css?v=12"><link rel="stylesheet" href="/static/css/periodicals.css?v=6"></head>
<body class="{{ .Theme }} periodical-top">{{ if .HomeWallpaperURL }}<img class="home-wallpaper" src="{{ .HomeWallpaperURL }}" alt="" aria-hidden="true" decoding="async" fetchpriority="high" style="opacity:{{ .HomeWallpaperOpacity }}">{{ end }}<main class="periodical-shell" data-periodical-kind="{{ .Kind }}"><header class="topbar"><a href="/">{{ .WikiName }}</a>{{ if not .Public }}<nav><a href="/v/diary">{{ T "periodical.diary" }}</a><a href="/v/blog">{{ T "periodical.blog" }}</a></nav>{{ template "auth-menu" . }}{{ end }}</header><div class="periodical-heading"><h1>{{ .Title }}</h1><nav>{{ if .CanConfigure }}<a href="/-/sys/config?panel={{ .Kind }}" title="{{ T "extension.settings" }}">⚙</a>{{ end }}{{ if and .Projection (not .Public) }}<a href="{{ .SourceViewer }}">{{ T "periodical.source_viewer" }}</a>{{ else if and .Enabled (not .Public) }}<button type="button" data-periodical-compose aria-haspopup="dialog">+ {{ T "periodical.compose" }}</button><a href="/v/{{ .Kind }}/-/new" aria-label="{{ T "periodical.new_page" }}" title="{{ T "periodical.new_page" }}">↗</a><button type="button" data-periodical-new aria-haspopup="dialog">{{ T "periodical.plan" }}</button><button type="button" data-periodical-add aria-haspopup="dialog">+ {{ T "periodical.register" }}</button>{{ end }}</nav></div>{{ if not .Public }}<p class="muted">{{ T "periodical.scope_help" }}</p>{{ end }}
{{ if not .Enabled }}<p role="status">{{ T "periodical.disabled" }}</p>{{ else }}
+2 -1
View File
@@ -8,7 +8,7 @@
{{ template "social-metadata" . }}
<link rel="stylesheet" href="/static/css/theme/base.css">
<link rel="stylesheet" href="{{ .ThemeCSS }}">
<link rel="stylesheet" href="/static/css/home.css?v=11">
<link rel="stylesheet" href="/static/css/home.css?v=12">
</head>
<body class="home-landing home-layout-{{ .HomeLayout }}{{ if eq .HomeLayout "directory" }} home-paged{{ end }}" style="--home-glass-opacity:{{ .HomeGlassOpacity }}%">
{{ if .HomeWallpaperURL }}<img class="home-wallpaper" src="{{ .HomeWallpaperURL }}" alt="" aria-hidden="true" decoding="async" fetchpriority="high" style="opacity:{{ .HomeWallpaperOpacity }}">{{ end }}
@@ -26,6 +26,7 @@
<div id="home-search-suggestions" class="home-search-suggestions" role="listbox" aria-label="{{ T "search.suggest_all" }}" hidden></div>
</div>
<nav class="home-shortcuts" aria-label="{{ T "config.nav" }}">
{{ template "organizer-shortcuts" . }}
{{ if .TasksEnabled }}<a href="/v/plan/tasks" aria-label="{{ T "tasks.title" }}" title="{{ T "tasks.title" }}" data-home-shortcut="tasks"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="m3 6 2 2 3-4m3 2h10M3 13l2 2 3-4m3 2h10M3 20l2 2 3-4m3 2h10"/></svg></a>{{ end }}
<a href="/v/browser" aria-label="{{ T "home.browse" }}" title="{{ T "home.browse" }}" data-home-shortcut="browser"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M3 6.5h7l2 2h9v10.5H3z"/><path d="M3 9h18"/></svg></a>
<a href="/v/tree" aria-label="{{ T "tree.title" }}" title="{{ T "tree.title" }}" data-home-shortcut="tree"><svg viewBox="0 0 24 24" aria-hidden="true"><circle cx="6" cy="5" r="2"/><circle cx="18" cy="12" r="2"/><circle cx="6" cy="19" r="2"/><path d="M8 5h2a3 3 0 0 1 3 3v1a3 3 0 0 0 3 3M8 19h2a3 3 0 0 0 3-3V8"/></svg></a>
-4
View File
@@ -1,4 +0,0 @@
{{ define "task_productivity.gohtml" }}<!doctype html>
<html lang="{{ .Locale }}"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>{{ T "tasks.title" }} · {{ .WikiName }}</title><link rel="stylesheet" href="/static/css/main.css"><link rel="stylesheet" href="/static/css/theme/base.css"><link rel="stylesheet" href="{{ .ThemeCSS }}"><link rel="stylesheet" href="/static/css/task-productivity.css?v=1"></head>
<body class="mode-view"><header class="topbar"><div class="brand"><a href="/">{{ .WikiName }}</a></div><nav><a href="/v/plan/today">{{ T "tasks.title" }}</a></nav>{{ template "auth-menu" . }}</header>
<main id="task-productivity" data-view="{{ .ProductivityView }}" data-writable="{{ .TaskWritable }}"><nav class="productivity-nav"><a href="/v/plan/today" data-word="tasks"></a><a href="/v/plan/tasks/report" data-word="report"></a><a href="/v/plan/tasks/settings" data-word="settings"></a><a href="/v/plan/contacts" data-word="contacts"></a></nav><h1></h1><p id="productivity-status" role="status" aria-live="polite"></p><section id="productivity-content"></section></main><script src="/static/js/task-productivity.js?v=1" defer></script></body></html>{{ end }}
+1 -1
View File
@@ -1 +1 @@
{{ define "task_schedule.gohtml" }}<!doctype html><html lang="{{ .Locale }}"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>{{ T "tasks.title" }} · {{ .WikiName }}</title><link rel="stylesheet" href="/static/css/main.css"><link rel="stylesheet" href="/static/css/theme/base.css"><link rel="stylesheet" href="{{ .ThemeCSS }}"><link rel="stylesheet" href="/static/css/tasks.css?v=8"></head><body class="mode-view"><header class="topbar"><div class="brand"><a href="/">{{ .WikiName }}</a></div><nav><a href="/v/plan/tasks">{{ T "tasks.title" }}</a></nav>{{ template "auth-menu" . }}</header><main id="task-schedule" data-month="{{ .TaskMonth }}"><header class="tasks-toolbar"><h1></h1><nav><a data-previous>←</a> <input type="month" aria-label="Month"> <a data-next>→</a></nav></header><p role="status"></p><div class="task-schedule-scroll"><div class="task-schedule-grid" role="table"></div></div><p data-help></p></main><script src="/static/js/task-schedule.js?v=1" defer></script></body></html>{{ end }}
{{ define "task_schedule.gohtml" }}<!doctype html><html lang="{{ .Locale }}"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>{{ T "tasks.title" }} · {{ .WikiName }}</title><link rel="stylesheet" href="/static/css/main.css"><link rel="stylesheet" href="/static/css/theme/base.css"><link rel="stylesheet" href="{{ .ThemeCSS }}"><link rel="stylesheet" href="/static/css/tasks.css?v=8"></head><body class="mode-view organizer-page"><header class="topbar"><div class="brand"><a href="/">{{ .WikiName }}</a></div>{{ template "auth-menu" . }}</header>{{ template "organizer-nav" . }}<main id="task-schedule" data-month="{{ .TaskMonth }}"><header class="tasks-toolbar"><h1></h1><nav><a data-previous>←</a> <input type="month" aria-label="Month"> <a data-next>→</a></nav></header><p role="status"></p><div class="task-schedule-scroll"><div class="task-schedule-grid" role="table"></div></div><p data-help></p></main><script src="/static/js/task-schedule.js?v=1" defer></script></body></html>{{ end }}
+2 -2
View File
@@ -1,7 +1,7 @@
{{ define "tasks.gohtml" }}<!doctype html>
<html lang="{{ .Locale }}"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>{{ T "tasks.title" }} · {{ .WikiName }}</title>
<link rel="stylesheet" href="/static/css/main.css"><link rel="stylesheet" href="/static/css/theme/base.css"><link rel="stylesheet" href="{{ .ThemeCSS }}"><link rel="stylesheet" href="/static/css/tasks.css?v=9"></head>
<body class="mode-view"><header class="topbar"><div class="brand"><a href="/">{{ .WikiName }}</a></div><nav><a href="/v/plan/today">{{ T "tasks.title" }}</a>{{ if .CalendarEnabled }} <a href="/v/plan">{{ T "calendar.title" }}</a>{{ end }}</nav>{{ template "auth-menu" . }}</header>
<body class="mode-view organizer-page"><header class="topbar"><div class="brand"><a href="/">{{ .WikiName }}</a></div>{{ template "auth-menu" . }}</header>{{ template "organizer-nav" . }}
<main id="tasks-app" data-view="{{ .TaskView }}" data-id="{{ .TaskID }}" data-today="{{ .TaskToday }}" data-selected-date="{{ .TaskSelectedDate }}" data-timezone="{{ .TaskTimezone }}" data-writable="{{ .TaskWritable }}">
<nav id="tasks-nav" aria-label="Tasks"></nav><section class="tasks-workspace">
<header class="tasks-toolbar"><div><small id="tasks-date"></small><h1 id="tasks-heading">{{ T "tasks.title" }}</h1></div><div class="tasks-actions"><button type="button" id="tasks-project-edit" hidden>⚙</button><button type="button" id="tasks-new">+</button><button type="button" id="tasks-refresh">↻</button></div></header>
@@ -11,4 +11,4 @@
<p id="tasks-status" role="status" aria-live="polite"></p><div class="tasks-list-scroll"><div id="tasks-list" role="list"></div></div><button type="button" id="tasks-more" hidden></button>
</section>
<dialog id="tasks-dialog" aria-labelledby="tasks-dialog-title"><form id="tasks-form"><header class="tasks-toolbar"><h2 id="tasks-dialog-title"></h2><button type="button" id="tasks-close">×</button></header><div id="tasks-fields"></div><p id="tasks-error" role="alert"></p><details id="tasks-history"><summary></summary><ol></ol></details><footer class="tasks-actions"><button type="button" id="tasks-archive"></button><a id="tasks-project-open" hidden></a><button type="submit" id="tasks-save"></button></footer></form></dialog>
</main><link rel="stylesheet" href="/static/css/dav-settings.css?v=3"><script src="/static/js/task-inline.js?v=4" defer></script><script src="/static/js/task-today.js?v=1" defer></script><script src="/static/js/task-planning.js?v=3" defer></script><script src="/static/js/task-focus.js?v=2" defer></script><script src="/static/js/task-work.js?v=1" defer></script><script src="/static/js/tasks.js?v=7" defer></script><script src="/static/js/task-dav-settings.js?v=4" defer></script></body></html>{{ end }}
</main><link rel="stylesheet" href="/static/css/dav-settings.css?v=3"><script src="/static/js/task-inline.js?v=4" defer></script><script src="/static/js/task-today.js?v=1" defer></script><script src="/static/js/task-planning.js?v=3" defer></script><script src="/static/js/task-focus.js?v=2" defer></script><script src="/static/js/task-work.js?v=1" defer></script><script src="/static/js/tasks.js?v=8" defer></script><script src="/static/js/task-dav-settings.js?v=4" defer></script></body></html>{{ end }}
+3 -1
View File
@@ -13,6 +13,7 @@
<link rel="stylesheet" href="/static/css/notifications.css?v=3">
<link rel="stylesheet" href="/static/css/notification-active.css?v=1">
<link rel="stylesheet" href="/static/css/nav-modals.css?v=3">
<link rel="stylesheet" href="/static/css/organizer.css?v=1">
<button type="button" class="city-map-launch" data-city-map-launch aria-label="{{ T "city.map" }}" title="{{ T "city.map" }}"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="m3 6 5-3 8 3 5-3v15l-5 3-8-3-5 3V6Zm5-1v11m8-8v11M5 7.2v10.3l3-1.8 8 3 3-1.8V6.5l-3 1.8-8-3L5 7.2Z"/></svg></button>
<dialog class="city-map-dialog" data-city-map-dialog aria-label="{{ T "city.map" }}"><div class="city-map-dialog-head"><strong>{{ T "city.map" }}</strong><a href="/v/city">↗</a><button type="button" data-city-map-close aria-label="Close">×</button></div><iframe title="{{ T "city.map" }}" data-city-map-frame data-src="/v/city?popup=1"></iframe></dialog>
{{ if .AuthUser }}<button type="button" class="notification-launch" data-notification-launch aria-label="{{ T "notification.title" }}" title="{{ T "notification.title" }}"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M18 9a6 6 0 0 0-12 0c0 7-3 7-3 9h18c0-2-3-2-3-9M10 21h4"/></svg><span class="notification-badge" data-notification-badge hidden></span></button><dialog class="notification-dialog" data-notification-dialog data-owner="{{ .AuthUser.UUID }}" data-domain="{{ .Context.Domain.UUID }}" aria-label="{{ T "notification.title" }}"><form method="dialog"><header><h2>{{ T "notification.title" }}</h2><button type="button" data-notification-close aria-label="Close">×</button></header><div class="notifications-list" data-notifications-list></div><footer><a href="/v/notification">{{ T "notification.all" }}</a></footer></form></dialog>{{ end }}
@@ -25,6 +26,7 @@
<dialog class="calendar-upcoming-dialog" data-calendar-upcoming-dialog data-timezone="{{ .Timezone }}" aria-modal="true" aria-labelledby="calendar-upcoming-title"><div class="nav-modal-content"><header><h2 id="calendar-upcoming-title">{{ T "calendar.upcoming" }}</h2><button type="button" data-calendar-upcoming-close aria-label="Close">×</button></header><p data-calendar-upcoming-status role="status"></p><div class="calendar-upcoming-list" data-calendar-upcoming-list></div><footer><a href="/v/plan">{{ T "calendar.title" }} ↗</a></footer></div></dialog>
{{ end }}{{ end }}
<script src="/static/js/nav-modals.js?v=2" defer></script>
{{ if .AuthUser }}<span class="organizer-nav-icons">{{ template "organizer-shortcuts" . }}</span>{{ end }}
{{ if .QuickThemes }}
<details class="theme-picker" data-theme-picker data-default-css="{{ .DefaultThemeCSS }}" data-current-css="{{ .ThemeCSS }}" data-current-id="{{ .QuickThemeID }}" data-failed="{{ T "theme.failed" }}">
<summary title="{{ T "theme.quick" }}" aria-label="{{ T "theme.quick" }}">◐</summary>
@@ -39,7 +41,7 @@
<div class="auth-menu">
{{ if .AuthUser }}
<details><summary aria-label="{{ T "auth.profile" }}"><span class="auth-avatar">{{ if .AuthUser.HasAvatar }}<img src="/u/{{ .AuthUser.Username }}/_/avatar" alt="">{{ else }}{{ printf "%.1s" .AuthUser.DisplayName }}{{ end }}</span><span class="auth-user-name">{{ .AuthUser.DisplayName }}</span></summary>
<div class="auth-menu-popover"><a href="/u/{{ .AuthUser.Username }}">{{ T "auth.profile" }}</a>{{ if .CalendarEnabled }}<a href="/v/plan">{{ T "calendar.title" }}</a>{{ end }}{{ if .TasksEnabled }}<a href="/v/plan/today">{{ T "tasks.title" }}</a>{{ end }}{{ if .AuthIsAdmin }}<a href="/-/sys/config">{{ T "config.title" }}</a>{{ end }}<form method="post" action="/_/auth/logout"><button type="submit">{{ T "auth.logout" }}</button></form></div></details>
<div class="auth-menu-popover"><a href="/u/{{ .AuthUser.Username }}">{{ T "auth.profile" }}</a>{{ if .CalendarEnabled }}<a href="/v/plan">{{ T "calendar.title" }}</a>{{ end }}{{ if .TasksEnabled }}<a href="/v/plan/today">{{ T "tasks.title" }}</a>{{ end }}{{ if .ContactsEnabled }}<a href="/v/plan/contacts">{{ T "organizer.contacts" }}</a>{{ end }}<a href="/-/sys/config?panel=organizer">{{ T "organizer.settings" }}</a>{{ if .AuthIsAdmin }}<a href="/-/sys/config">{{ T "config.title" }}</a>{{ end }}<form method="post" action="/_/auth/logout"><button type="submit">{{ T "auth.logout" }}</button></form></div></details>
{{ else }}<a class="auth-login-link" href="/_/auth/login">{{ T "auth.login" }}</a>{{ end }}
</div>
<style>.topbar{display:flex;align-items:center}.topbar .city-map-launch{display:grid;place-items:center;width:2.25rem;height:2.25rem;margin-inline-start:auto;margin-inline-end:.55rem;padding:.38rem;border:1px solid var(--border,currentColor);border-radius:50%;background:transparent;color:var(--fg,currentColor);cursor:pointer}.city-map-launch:hover,.city-map-launch:focus-visible{background:color-mix(in srgb,var(--accent,#5267df) 15%,transparent);color:var(--accent,#5267df)}.city-map-launch svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.topbar .auth-menu{margin-inline-start:0;position:relative}.city-map-dialog{width:min(74rem,calc(100vw - 2rem));height:min(48rem,calc(100vh - 2rem));box-sizing:border-box;padding:0;border:1px solid var(--border,currentColor);border-radius:1rem;background:var(--bg,#111);color:var(--fg,#eee);box-shadow:0 1.5rem 5rem #000a;overflow:hidden}.city-map-dialog::backdrop{background:#0009;backdrop-filter:blur(3px)}.city-map-dialog-head{display:none}.city-map-dialog iframe{display:block;width:100%;height:100%;border:0;background:var(--bg,#111)}.auth-menu details>summary{display:flex;align-items:center;gap:.45rem;cursor:pointer;list-style:none}.auth-menu details>summary::-webkit-details-marker{display:none}.auth-avatar{display:grid;place-items:center;width:2rem;height:2rem;overflow:hidden;border-radius:50%;background:var(--accent,#5267df);color:var(--bg,#fff);font-weight:700;text-transform:uppercase}.auth-avatar img{width:100%;height:100%;object-fit:cover}.auth-menu-popover{position:absolute;z-index:50;right:0;top:calc(100% + .5rem);display:grid;min-width:12rem;padding:.4rem;background:var(--input-bg,var(--bg,#111));color:var(--fg,#eee);border:1px solid var(--border,currentColor);border-radius:.5rem;box-shadow:0 .5rem 1.5rem #0008}.auth-menu-popover form{margin:0}.auth-menu-popover button{display:block;width:100%;border:0;background:transparent;text-align:left;font:inherit;cursor:pointer}.auth-menu-popover a,.auth-menu-popover button{padding:.55rem .7rem;white-space:nowrap;color:var(--link,var(--fg,#eee))}.auth-menu-popover a:hover,.auth-menu-popover button:hover{background:var(--row-hover,var(--border-soft,transparent));color:var(--link-hover,var(--fg,#fff))}.auth-user-name{max-width:12rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.site-broadcast{position:fixed;z-index:40;left:50%;top:.6rem;transform:translateX(-50%);display:flex;gap:.75rem;align-items:baseline;max-width:min(58rem,calc(100vw - 2rem));padding:.55rem .9rem;border:1px solid var(--accent);border-radius:.45rem;background:var(--bg);box-shadow:0 .35rem 1.2rem #0005}.site-broadcast span{overflow:hidden;text-overflow:ellipsis}.site-broadcast-warning{border-color:#d89b2b}.site-broadcast-critical{border-color:#e5484d}.site-broadcast-success{border-color:#2eaa67}@media(max-width:700px){.auth-user-name{display:none}.city-map-dialog{width:100vw;height:100vh;max-width:none;max-height:none;border:0;border-radius:0}.site-broadcast{top:3.2rem;display:grid;gap:.15rem}}</style>
+12
View File
@@ -0,0 +1,12 @@
{{ define "organizer-nav" }}
<link rel="stylesheet" href="/static/css/organizer.css?v=1">
<nav class="organizer-nav" aria-label="{{ T "organizer.title" }}">
{{ if .TasksEnabled }}<a href="/v/plan/dashboard" {{ if eq .OrganizerSection "dashboard" }}aria-current="page"{{ end }}>▦ <span>{{ T "organizer.dashboard" }}</span></a><a href="/v/plan/tasks" {{ if eq .OrganizerSection "tasks" }}aria-current="page"{{ end }}>✓ <span>{{ T "tasks.title" }}</span></a>{{ end }}
{{ if .CalendarEnabled }}<a href="/v/plan" {{ if eq .OrganizerSection "calendar" }}aria-current="page"{{ end }}>▤ <span>{{ T "calendar.title" }}</span></a>{{ end }}
{{ if .ContactsEnabled }}<a href="/v/plan/contacts" {{ if eq .OrganizerSection "contacts" }}aria-current="page"{{ end }}>♧ <span>{{ T "organizer.contacts" }}</span></a>{{ end }}
{{ if .AuthUser }}<a href="/-/sys/config?panel=organizer" {{ if eq .OrganizerSection "settings" }}aria-current="page"{{ end }}>⚙ <span>{{ T "organizer.settings" }}</span></a>{{ end }}
</nav>{{ end }}
{{ define "organizer-shortcuts" }}
{{ if .TasksEnabled }}<a href="/v/plan/dashboard" class="organizer-launch" data-home-shortcut="dashboard" title="{{ T "organizer.dashboard" }}" aria-label="{{ T "organizer.dashboard" }}"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M3 3h7v7H3zM14 3h7v11h-7zM3 14h7v7H3zM14 18h7v3h-7z"/></svg></a>{{ end }}
{{ if .ContactsEnabled }}<a href="/v/plan/contacts" class="organizer-launch" data-home-shortcut="contacts" title="{{ T "organizer.contacts" }}" aria-label="{{ T "organizer.contacts" }}"><svg viewBox="0 0 24 24" aria-hidden="true"><rect x="4" y="3" width="15" height="18" rx="2"/><circle cx="12" cy="9" r="3"/><path d="M8 17c0-5 8-5 8 0M2 7h4M2 12h4M2 17h4"/></svg></a>{{ end }}
{{ end }}