<% if preview %>

PREVIEW ONLY

<% end %> <% @total_photos_count = release.photos.size %> <% if release.respond_to? :guardian_photo %> <% @total_photos_count += release.guardian_photo.attached? ? 1 : 0 %> <% end %> <% if release.respond_to? :guardian_2_photo %> <% @total_photos_count += release.guardian_2_photo.attached? ? 1 : 0 %> <% end %>

<%= t '.heading', count: @total_photos_count %>