This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
2017-06-29 22:59:28 -07:00
|
|
|
.media-item><
|
2017-05-07 18:35:25 -07:00
|
|
|
= link_to media.remote_url.blank? ? media.file.url(:original) : media.remote_url, style: media.image? ? "background-image: url(#{media.file.url(:original)})" : '', target: '_blank', rel: 'noopener', class: "u-#{media.video? || media.gifv? ? 'video' : 'photo'}" do
|
2017-03-04 13:17:10 -08:00
|
|
|
- unless media.image?
|
|
|
|
%video{ src: media.file.url(:original), autoplay: true, loop: true }/
|