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

27 lines
1.7 KiB
Go Template
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{{ define "home-bookmarks" }}
<link rel="stylesheet" href="/static/css/bookmarks.css?v=3">
<script defer src="/static/js/bookmarks.js"></script>
<script defer src="/static/js/bookmark-manager.js"></script>
<section class="home-bookmarks" aria-label="{{ T "home.bookmarks" }}">
{{ if .CanManageBookmarks }}
<div class="bookmark-toolbar"><button type="button" class="bookmark-settings-icon" data-bookmark-open title="{{ T "config.manage_bookmarks" }}" aria-label="{{ T "config.manage_bookmarks" }}"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="m9 3-.5 3-2 .9L4 6l-2 4 2.5 1.8v2.4L2 16l2 4 2.5-.9 2 .9.5 3h6l.5-3 2-.9L20 20l2-4-2.5-1.8v-2.4L22 10l-2-4-2.5.9-2-.9-.5-3z"/><circle cx="12" cy="13" r="3"/></svg></button></div>
<dialog class="home-bookmark-manager" data-bookmark-dialog aria-labelledby="bookmark-dialog-title">
<header class="bookmark-dialog-header"><h2 id="bookmark-dialog-title">{{ T "config.manage_bookmarks" }}</h2><button type="button" data-bookmark-close aria-label="{{ T "bookmark.close" }}">×</button></header>
{{ template "bookmark-settings" . }}
</dialog>
{{ end }}
{{ if ne .HomeLayout "search" }}
<div class="bookmark-sections">
{{ range .BookmarkSections }}
<section class="bookmark-section"><h2>{{ .Label }}</h2>
<ul {{ if .Source }}data-bookmark-source="{{ .Source }}" aria-busy="true"{{ end }}>
{{ range .Links }}<li><a href="{{ .Href }}">{{ .Label }}</a></li>{{ end }}
</ul>
{{ if .Source }}<button type="button" data-bookmark-load data-error="{{ T "bookmark.load_error" }}" data-more="{{ T "bookmark.more" }}">{{ T "bookmark.loading" }}</button>{{ end }}
</section>
{{ else }}<p class="home-empty">{{ T "home.bookmarks_empty" }}</p>{{ end }}
</div>
{{ end }}
</section>
{{ end }}