{* SPDX-FileCopyrightText: © 2021 Olivier Meunier SPDX-License-Identifier: AGPL-3.0-only *} {{ extends "/base" }} {{ import "./components/common" }} {{ import "./components/card_blocks" }} {{- block title() -}} {{- if !.Item.Loaded -}} {{ gettext("Bookmark loading") }} {{- else -}} {{ .Item.Title }} {{- end }} - {{ gettext("Bookmarks") }} {{- end -}} {{- block head() -}} {{- if !.Item.Loaded -}} {{- end -}} {{- end -}} {{- block body() -}} {{- yield quickAccessMenu(items=slice( slice("menu", gettext("Menu")), slice("content", gettext("Main content")), )) -}}
{{ include "/menu" }} {{- if !.Item.Loaded -}}
{{ yield spinner() }}

{{ gettext("Bookmark is loading") }}…

{{- else -}}
{{ include "./components/sidebar" }}
{* top bar *}
{{- yield icon(name="o-pencil", class="inline-block", svgClass="w-6 h-6") -}} {{- gettext("Edit") -}} {{- if .Item.HasArticle -}} {{- include "./components/reader_control" -}} {{- end -}}
{{- if .Item.HasArticle -}} {{- end -}}
{* title and description *}
{{ include "./components/title_block" }}
{* content *} {{ include "./components/content_block" map( "Item", .Item, "HTML", .HTML ) }}
{{- include "./components/bottom_actions" .Item -}}
{{- end -}}
{{- end -}}