mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-23 15:01:27 +00:00
15 lines
No EOL
507 B
PHP
15 lines
No EOL
507 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>
|
|
<a class="max-hide-overflow {{$status->firstMedia()->filter_class}}" href="{{$status->url()}}">
|
|
<img class="card-img-top" src="{{$status->mediaUrl()}}">
|
|
</a>
|
|
</details>
|
|
@else
|
|
<div class="{{$status->firstMedia()->filter_class}}">
|
|
<img src="{{$status->mediaUrl()}}" width="100%">
|
|
</div>
|
|
@endif |