{{define "gallery.html"}} {{template "layout_head" .}} {{template "partials/tag_sidebar.html" .}} {{template "layout_mid" .}}
{{if .SearchWarning}}{{.SearchWarning}}{{end}}

Save search:
{{.Query}}

Delete {{template "batch_count" "batch-delete"}}?

Files are permanently deleted from disk. This cannot be undone.

{{/* Body wrapped in #batch-actions-body so HTMX search responses can OOB-swap the entries when .Query / .Result.Total change without disturbing the wrapper or its open state. */}}
{{template "partials/batch_actions_body.html" .}}

Add tags to :

{{if .EnabledTaggers}}

Auto-tag {{template "batch_count" "batch-autotag"}}. Pick which tagger to run.

{{range .EnabledTaggers}}{{end}}
{{end}}

Remove tags from :

{{if .SourceLabelCounts}}
{{end}} {{if .EnabledTaggers}}
{{end}} {{if .SourceLabelCounts}}{{end}}

Move {{template "batch_count" "batch-move"}} to folder:

Path (leave blank for gallery root)

Transfer {{template "batch_count" "batch-transfer"}} to another gallery:

The image and its tags, sources and notes are copied into the target gallery.

Relations and collections are not carried over.

Toggle inbox state for {{template "batch_count" "batch-inbox"}}?

Inbox images become archived; archived become inbox.

Toggle favorite state for {{template "batch_count" "batch-fav"}}?

Favorited images become unfavorited; unfavorited become favorited.

Set collection for {{template "batch_count" "batch-collection"}}:

{{template "suggest_input" dict "Name" "collection" "InputID" "batch-collection-input" "Endpoint" "/internal/collection/suggest" "SuggestID" "batch-collection-suggest"}}

Set source for {{template "batch_count" "batch-source"}}:

{{template "suggest_input" dict "Name" "site" "InputID" "batch-source-input" "Endpoint" "/internal/source/suggest" "SuggestID" "batch-source-suggest"}}

Look up tags for {{template "batch_count" "batch-lookup"}}:

{{if .MonloaderPTR}} {{end}}

The source refresh uses each image's primary source URL, or a PTR hash lookup when the primary is a url-less PTR source, and skips images with neither; the hash lookup finds posts for files with no known source. Queued jobs run on monloader and cannot be cancelled from here.

{{template "layout_end" .}} {{end}}