mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-10 00:34:50 +00:00
Add timeline photo view
This commit is contained in:
parent
358c510f3d
commit
412e7b3ad6
1 changed files with 15 additions and 0 deletions
15
resources/views/status/timeline/photo.blade.php
Normal file
15
resources/views/status/timeline/photo.blade.php
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
@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
|
Loading…
Reference in a new issue