<% person.clips.each do |clip| %> <% if !defined?(current_clip) or current_clip != clip %> <%= link_to(clip, clip.video_switcher_params.merge(class: ['list-group-item'])) do %> <%= clip.title %> <%= duration_pretty(clip) %> <% end -%> <% end -%> <% end -%>