{{#if type === 'video'}} {{else}} {{#if type === 'gifv' && $autoplayGifs}} {{elseif type === 'gifv' && !$autoplayGifs}} {{else}} {{/if}} {{/if}}