mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-25 16:43:41 +01:00
48594b18e6
* add haml_lint to Gemfile * add .haml-lint.yml * fix warnings of haml_lint
4 lines
380 B
Text
4 lines
380 B
Text
.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 }/
|