<% if (post.contentType === 'image' || post.contentType === 'animation') { %> <%= post.name %> <% } else if (post.contentType === 'youtube') { %> <% } else if (post.contentType === 'flash') { %> <% } else if (post.contentType === 'video') { %> <% if (post.flags.loop) { %>