mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-23 13:33:18 +00:00
19 lines
659 B
PHP
19 lines
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
|