{{define "tags_detail.html"}} {{template "layout_head" .}} {{template "layout_mid" .}} {{$csrf := .CSRFToken}} {{$kinds := .OriginKinds}}

‹ Tags / #{{.Tag.ID}}

{{.Tag.Name}} {{if .Tag.IsAlias}}alias{{end}} {{if .IsRating}} (built-in rating) {{else}} {{.Tag.CategoryName}} {{end}} {{if not .IsRating}} {{end}} {{if and .MonloaderPaired .MonloaderPTR (not .Tag.IsAlias) (not .IsRating)}} {{end}}

usage {{.Tag.UsageCount}} · origin {{if .Tag.Origin}} {{$kind := index $kinds .Tag.Origin}} {{if eq $kind "user"}}user{{else}}{{.Tag.Origin}}{{end}} {{else}}{{end}} · created {{.Tag.CreatedAt.Format "2006-01-02"}} · last used {{if .Tag.LastUsedAt.IsZero}}{{else}}{{.Tag.LastUsedAt.Format "2006-01-02"}}{{end}}

{{if .Tag.IsAlias}}

Resolves to

{{with .Canonical}}
{{$.Tag.Name}} {{.Name}} {{.CategoryName}} · usage {{.UsageCount}} · last used {{if .LastUsedAt.IsZero}}—{{else}}{{.LastUsedAt.Format "2006-01-02"}}{{end}} · details →
{{else}}

Canonical tag missing.

{{end}}

Searches for {{.Tag.Name}} and new adds of it land on the canonical. An alias row never carries images itself.

{{else}}

Aliases pointing here

{{if .Aliases}}
    {{range .Aliases}}
  • {{.Name}} {{if .Origin}} {{$kind := index $kinds .Origin}} {{if eq $kind "user"}}user{{else}}{{.Origin}}{{end}} {{end}}
  • {{end}}
{{else}}

No aliases point at this tag.

{{end}}

Implied by

{{if .ImpliedBy}}
    {{range .ImpliedBy}}
  • {{.ParentName}} {{if .Origin}} {{$kind := index $kinds .Origin}} {{if eq $kind "user"}}user{{else}}{{.Origin}}{{end}} {{end}}
  • {{end}}
{{else}}

Nothing implies this tag.

{{end}}
Loading…

Recent images

{{if .RecentImageIDs}}
{{range .RecentImageIDs}} image {{.}} {{end}}

all {{.Tag.UsageCount}} in gallery →

{{else}}

No visible images carry this tag.

{{end}}

Implies

{{template "partials/implications_dialog.html" (dict "Parent" .Tag "Implications" .Implications "CSRFToken" $csrf)}}
{{end}}

Rename

{{if not .Tag.IsAlias}} {{end}}
{{if not .IsRating}}

Move {{.Tag.Name}} to:

{{end}}

{{if .Tag.IsAlias}}Repoint{{else}}Alias{{end}} {{.Tag.Name}} to:

{{template "tag_suggest_input" dict "Name" "canonical_id" "InputID" "detail-alias-canon" "SuggestID" "detail-alias-suggest" "Required" true}}
{{if not .Tag.IsAlias}}

Every image tagged {{.Tag.Name}} moves to the canonical and its implications go with it; the name stays as a zero-usage alias. This cannot be undone.

{{end}}

The canonical is created if it doesn't exist yet.

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