{{#each mediaAttachments as media}}
{{#if media.type === 'video'}} {{elseif media.type === 'gifv'}}
{{/each}}