% asset ||= @asset %> <% is_image = asset.is_image? %> <% timestamp = asset.created_at %> <% icon_class = 'fas ' + (is_image ? 'fa-image' : 'fa-file') %>