{{define "partials/relations_comparison.html"}} {{- $L := .Left -}} {{- $R := .Right -}}
| Field | Left #{{$L.ImageID}} | Right #{{$R.ImageID}} |
|---|---|---|
| Resolution | {{$L.ResolutionW}}×{{$L.ResolutionH}}{{if $lwin}} ←{{end}} | {{$R.ResolutionW}}×{{$R.ResolutionH}}{{if $rwin}} ←{{end}} |
| File size | {{humanBytes $L.FileSize}}{{if gt $L.FileSize $R.FileSize}} ←{{end}} | {{humanBytes $R.FileSize}}{{if gt $R.FileSize $L.FileSize}} ←{{end}} |
| Added | {{if $L.AddedAt}}{{$L.AddedAt}}{{else}}—{{end}} | {{if $R.AddedAt}}{{$R.AddedAt}}{{else}}—{{end}} |
| Tag count | {{$L.TagCount}}{{if gt $L.TagCount $R.TagCount}} ←{{end}} | {{$R.TagCount}}{{if gt $R.TagCount $L.TagCount}} ←{{end}} |
| Tags only here | {{if $L.UniqueTags}} {{range $i, $n := $L.UniqueTags}}{{if $i}}, {{end}}{{$n}}{{end}}{{if gt $L.UniqueTagsTotal (len $L.UniqueTags)}}, +{{sub $L.UniqueTagsTotal (len $L.UniqueTags)}} more{{end}} {{else}}(none){{end}} | {{if $R.UniqueTags}} {{range $i, $n := $R.UniqueTags}}{{if $i}}, {{end}}{{$n}}{{end}}{{if gt $R.UniqueTagsTotal (len $R.UniqueTags)}}, +{{sub $R.UniqueTagsTotal (len $R.UniqueTags)}} more{{end}} {{else}}(none){{end}} |
| Format | {{if $L.Format}}{{$L.Format}}{{else}}—{{end}} | {{if $R.Format}}{{$R.Format}}{{else}}—{{end}} |
| Collection | {{if $L.Collection}}{{$L.Collection}}{{else}}—{{end}} | {{if $R.Collection}}{{$R.Collection}}{{else}}—{{end}} |