mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 22:41:27 +00:00
19 lines
No EOL
659 B
PHP
19 lines
No EOL
659 B
PHP
@if($status->is_nsfw)
|
|
<details class="details-animated">
|
|
<summary>
|
|
<p class="mb-0 lead font-weight-bold">CW / NSFW / Hidden Media</p>
|
|
<p class="font-weight-light">(click to show)</p>
|
|
</summary>
|
|
<div class="embed-responsive embed-responsive-16by9">
|
|
<video class="video" preload="none" controls loop>
|
|
<source src="{{$status->firstMedia()->url()}}" type="{{$status->firstMedia()->mime}}">
|
|
</video>
|
|
</div>
|
|
</details>
|
|
@else
|
|
<div class="embed-responsive embed-responsive-16by9">
|
|
<video class="video" preload="none" controls loop>
|
|
<source src="{{$status->firstMedia()->url()}}" type="{{$status->firstMedia()->mime}}">
|
|
</video>
|
|
</div>
|
|
@endif |