{* SPDX-FileCopyrightText: © 2021 Olivier Meunier SPDX-License-Identifier: AGPL-3.0-only *} {{ extends "./base" }} {{ import "/_libs/list"}} {{- block title() -}}{{ gettext("Bookmark Collections") }}{{- end -}} {{- block mainContent() -}}

{{ yield title() }}

{{ gettext("Create a new collection") }}

{{- if len(.Collections) == 0 -}}
{{ yield icon(name="o-big-arrow", class="text-yellow-500", svgClass="h-36", w="50", h="250") }}

{{ gettext(` Collections let you easily organize and export your bookmarks by saving search requests of your choice. When you create a new bookmark that matches a collection's criteria, it will appear immediately. Here are some examples: `) }}

  • {{ gettext("The unread articles (no photos or videos)") }},
  • {{ gettext(`The archived articles from "wikipedia.org"`) }},
  • {{ gettext(`The pictures with the label "cat"`) }},
  • {{ gettext(`The articles that contain "shelter" in their title`) }}.

{{ gettext( `Read more about collections in the documentation.`, "link", urlFor(`/docs/collections`), )|raw }}

{{- end -}} {{- if len(.Collections) > 0 -}} {{- yield list() content -}} {{- range .Collections -}} {{- yield list_item(class="flex gap-2 items-center hfw:bg-gray-100 max-md:block") content -}} {{ .Name }} Created on: {{ date(.Created, "%e %B %Y") }} {{- if .IsDeleted -}}
This collection will be removed in a few seconds.
{{- end -}} {{- end -}} {{- end -}} {{- end -}}
{{- end -}} {{- end -}}