1
0
Fork 0
mirror of https://github.com/mastodon/mastodon.git synced 2024-08-20 21:08:15 -07:00
mastodon/app/views/admin/reports/_media_attachments.html.haml

18 lines
774 B
Text
Raw Normal View History

- if status.ordered_media_attachments.first.video?
= render_video_component(status, visible: false)
- elsif status.ordered_media_attachments.first.audio?
- audio = status.ordered_media_attachments.first
= react_component :audio,
alt: audio.description,
duration: audio.file.meta.dig(:original, :duration),
height: 110,
lang: status.language,
src: audio.file.url(:original)
- else
= react_component :media_gallery,
height: 343,
lang: status.language,
media: serialized_media_attachments(status.ordered_media_attachments),
sensitive: status.sensitive?,
visible: false