{* SPDX-FileCopyrightText: © 2023 Olivier Meunier SPDX-License-Identifier: AGPL-3.0-only *} {{ import "../../_libs/common" }} {{ import "./common" }} {{- if len(.Item.Errors) -}} {{- yield message(type="error") content -}}
{{ gettext("Errors occurred during extraction.") }}
    {{- range .Item.Errors -}}
  • {{ . }}
  • {{- end -}}

{{ gettext(` Depending on the error, Readeck's browser extension may provide a workaround.` ) }}

{{ gettext("Learn more") }}

{{- end -}} {{- end -}}
{{- if .Item.Type == "article" && isset(.Item.Resources.image) -}}
{{- end -}}
  • {{- if isset(.Item.Resources.icon) -}} {{- end -}} {{ default(.Item.SiteName, gettext(`no site name`)) }}
  • {{- yield line_icon(icon="o-download") content -}} {{- date(.Item.Created, "%e %B %Y") }} {{- end -}} {{- if !empty(.Item.Published) -}} {{- yield line_icon(icon="o-calendar") content -}} {{ gettext("Published on %s", date(.Item.Published, "%e %B %Y")) }} {{- end -}} {{- end -}} {{- if !empty(.Item.Authors) -}} {{- yield line_icon(icon="o-pen") content -}} {{ gettext("By %s", join(.Item.Authors, ", ")) }} {{- end -}} {{- end -}} {{- yield line_icon(icon="o-link-ext") content -}} {{ .Item.Domain }} {{- end -}} {{- if .Item.ReadingTime > 0 -}} {{- yield line_icon(icon="o-clock") content -}} {{ ngettext("About %d minute read", "About %d minutes read", .Item.ReadingTime, .Item.ReadingTime) }} {{- end -}} {{- end -}}
{{ include "./actions" .Item }} {* sharing frame *}

{{- yield icon(name="o-label") }} {{ gettext("Labels") }}

{{ include "./labels_form" .Item }} {{- if .Item.HasArticle -}} {{ include "./annotation_list" }} {{- if .Item.HasArticle && .Item.Links && .Item.Links.HasPages() -}}
{{- yield icon(name="o-link") }} {{ gettext("Links") }}
{{- end -}} {{- end -}}