Files
pages/templates/partials/organizer_nav.gohtml
T
Anya Tokugawa 667776e43f
Build and publish container images / images (push) Successful in 9m29s
Release container images / release (push) Successful in 18s
feat(tasks): add keyboard index and productivity dashboard improvements
2026-11-10 07:12:15 +09:00

15 lines
2.6 KiB
Go Template

{{ define "organizer-nav" }}
<link rel="stylesheet" href="/static/css/organizer.css?v=3">
<nav class="organizer-nav" aria-label="{{ T "organizer.title" }}">
{{ if .FeedsEnabled }}<a href="/v/feeds" title="{{ T "feeds.title" }}" aria-label="{{ T "feeds.title" }}" {{ if eq .OrganizerSection "feeds" }}aria-current="page"{{ end }}>◉ <span>{{ T "feeds.title" }}</span></a>{{ end }}
{{ if .TasksEnabled }}<a href="/v/plan/dashboard" title="{{ T "organizer.dashboard" }}" aria-label="{{ T "organizer.dashboard" }}" {{ if eq .OrganizerSection "dashboard" }}aria-current="page"{{ end }}>▦ <span>{{ T "organizer.dashboard" }}</span></a><a href="/v/plan/tasks" title="{{ T "tasks.title" }}" aria-label="{{ T "tasks.title" }}" {{ if eq .OrganizerSection "tasks" }}aria-current="page"{{ end }}>✓ <span>{{ T "tasks.title" }}</span></a>{{ end }}
{{ if .CalendarEnabled }}<a href="/v/plan" title="{{ T "calendar.title" }}" aria-label="{{ T "calendar.title" }}" {{ if eq .OrganizerSection "calendar" }}aria-current="page"{{ end }}>▤ <span>{{ T "calendar.title" }}</span></a>{{ end }}
{{ if .ContactsEnabled }}<a href="/v/plan/contacts" title="{{ T "organizer.contacts" }}" aria-label="{{ T "organizer.contacts" }}" {{ if eq .OrganizerSection "contacts" }}aria-current="page"{{ end }}>♧ <span>{{ T "organizer.contacts" }}</span></a>{{ end }}
{{ if .AuthUser }}<a href="/-/sys/config?panel=organizer" title="{{ T "organizer.settings" }}" aria-label="{{ T "organizer.settings" }}" {{ if eq .OrganizerSection "settings" }}aria-current="page"{{ end }}>⚙ <span>{{ T "organizer.settings" }}</span></a>{{ end }}
</nav>{{ end }}
{{ define "organizer-shortcuts" }}
{{ if .FeedsEnabled }}<a href="/v/feeds" class="organizer-launch" data-home-shortcut="feeds" title="{{ T "feeds.title" }}" aria-label="{{ T "feeds.title" }}"><svg viewBox="0 0 24 24" aria-hidden="true"><circle cx="5" cy="19" r="1"/><path d="M4 11a9 9 0 0 1 9 9M4 4a16 16 0 0 1 16 16"/></svg></a>{{ end }}
{{ 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 }}