{* SPDX-FileCopyrightText: © 2021 Olivier Meunier SPDX-License-Identifier: AGPL-3.0-only *} {{ extends "./base" }} {{- import "/_libs/pagination" -}} {{- import "./components/list_actions"}} {{ block title() }}{{ gettext("Label") }} - {{ .Label }}{{ end }} {{- block extraHead() }} {{ filterParams := `labels="` + url(.Label) + `"` }} {{- end -}} {{ block mainContent() -}}

{* JS context *} {{ gettext("Labels") }} / {{ .Label }} {* Classic input field shown in no-JS *}

{{- yield list_actions() content -}} {{- if !.IsDeleted -}} {{- if hasPermission("api:bookmarks", "export") -}} {{ sortParam := isset(.CurrentOrder) ? .CurrentOrder : "" }} {{- yield export_menu(params=`?labels="` + url(.Label) + `"`, sortParam=sortParam) -}} {{- end -}} {{- end -}} {{- end -}}
{{- if .IsDeleted -}}
{{- yield message(type="info") content -}} {{ gettext("Label will be removed in a few seconds.") }}  {{- end -}}
{{- end -}} {{- include "./components/bookmark_list" -}} {{- end }}