mirror of
https://github.com/glitch-soc/mastodon.git
synced 2024-11-15 12:44:24 -05:00
5 lines
382 B
Plaintext
5 lines
382 B
Plaintext
.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 }/
|