diff options
author | kibigo! <marrus-sh@users.noreply.github.com> | 2017-06-29 22:59:28 -0700 |
---|---|---|
committer | kibigo! <marrus-sh@users.noreply.github.com> | 2017-06-29 22:59:28 -0700 |
commit | fc65b691df3c1a0a9635ae337fd163c5336f87ce (patch) | |
tree | 5641e38cc882e83f2ed9f39ce9e2734db4cf7589 /app/views/stream_entries/_media.html.haml | |
parent | 651c3d643c078abeb04099c2f1e54d335d60478f (diff) |
Images now behind CWs on static pages
Diffstat (limited to 'app/views/stream_entries/_media.html.haml')
-rw-r--r-- | app/views/stream_entries/_media.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/stream_entries/_media.html.haml b/app/views/stream_entries/_media.html.haml index 779f02c8d..32d024cf6 100644 --- a/app/views/stream_entries/_media.html.haml +++ b/app/views/stream_entries/_media.html.haml @@ -1,4 +1,4 @@ -.media-item +.media-item>< = 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 - unless media.image? %video{ src: media.file.url(:original), autoplay: true, loop: true }/ |