<%= ERB::Util.html_escape(@title) %>
<%= @count %> photo<%= @count == 1 ? '' : 's' %> in this cluster
<% if @is_pool %>
These faces were removed from other clusters and are waiting to be assigned.
Use Assign to… to move a face to a named person, or
Blacklist to permanently exclude it from future clustering.
<% else %>
Move to pool sends a face to a holding area where you can assign it later.
Blacklist cluster permanently excludes all faces in this cluster from future clustering.
No photo files are ever modified — only the clustering metadata is affected.
<% end %>
<% unless @is_pool %>
<%# ── Name ──────────────────────────────────────────────────────────────── %>
<% if @count == 1 && !@name %>
<% m = @members.first; rel = m['rel']; box = m['box'] %>
<% parts = rel.split('/'); fname = parts.last; dir_rel = parts[0..-2].join('/') %>
<% album_url = dir_rel.empty? ? '/browse/' : "/browse/#{ERB::Util.html_escape(dir_rel)}" %>
Hover to see full photo · Click to open in album
<% end %>
<%# ── Merge entire cluster ──────────────────────────────────────────────── %>
<% unless @all_others.empty? %>
Merge entire cluster into another person
Moves all <%= @count %> photos and removes this cluster.
<% end %>
<%# ── Delete cluster (blacklists all members) ───────────────────────────── %>
<% else %>
<%# ── Pool: blacklist all ────────────────────────────────────────────────── %>
<% end %>
<%# ── Face grid ──────────────────────────────────────────────────────────── %>
Hover a face to see the full photo. Click to open in the album.
<% if @is_pool %>
Use the drop-down to assign a face to a named person, or blacklist it permanently.
<% elsif !@named_others.empty? %>
Use the drop-down to move a face to another person.
<% end %>
<% @members.each do |m| %>
<% rel = m['rel']; box = m['box'] %>
<% parts = rel.split('/'); fname = parts.last; dir_rel = parts[0..-2].join('/') %>
<% album_url = dir_rel.empty? ? '/browse/' : "/browse/#{ERB::Util.html_escape(dir_rel)}" %>
<% if @is_pool || !@named_others.empty? %>
<% end %>
<% end %>