mirror of https://git.stjo.hn/planiverse
Support showing video attachments
Added support for showing video and gifv attachment types.
This commit is contained in:
parent
efcdf76c3e
commit
b76a68cd7c
|
@ -16,6 +16,15 @@
|
|||
/>
|
||||
</a>
|
||||
</figure>
|
||||
@elseif ($attachment['type'] === 'video' || $attachment['type'] === 'gifv')
|
||||
<video controls>
|
||||
<source src="{{
|
||||
$attachment['remote_url'] === null
|
||||
? $attachment['url']
|
||||
: $attachment['remote_url']
|
||||
}}"
|
||||
/>
|
||||
</video>
|
||||
@endif
|
||||
@endforeach
|
||||
@else
|
||||
|
|
Loading…
Reference in New Issue