forked from mirror/pixelfed
Update look of status view
This commit is contained in:
parent
c53e963537
commit
35020b7108
|
@ -2,29 +2,31 @@
|
||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
|
|
||||||
<div class="container">
|
<div class="container px-0 mt-md-4">
|
||||||
<div class="col-12 mt-4">
|
|
||||||
|
|
||||||
<div class="card status-container orientation-{{$status->firstMedia()->orientation ?? 'unknown'}}">
|
<div class="card status-container orientation-{{$status->firstMedia()->orientation ?? 'unknown'}}">
|
||||||
<div class="card-body p-0">
|
<div class="row mx-0">
|
||||||
<div class="row">
|
<div class="col-12 col-md-8 status-photo px-0">
|
||||||
<div class="col-12 col-md-8 status-photo">
|
|
||||||
<img src="{{$status->mediaUrl()}}" width="100%">
|
<img src="{{$status->mediaUrl()}}" width="100%">
|
||||||
</div>
|
</div>
|
||||||
<div class="col-12 col-md-4" style="height:100%">
|
<div class="col-12 col-md-4 px-0 d-flex flex-column">
|
||||||
<div class="status-username d-inline-flex align-items-center pr-3 pt-3">
|
<div class="d-flex align-items-center justify-content-between card-header">
|
||||||
|
<div class="d-flex align-items-center status-username">
|
||||||
<div class="status-avatar mr-2">
|
<div class="status-avatar mr-2">
|
||||||
<img class="img-thumbnail" src="{{$user->avatarUrl()}}" width="50px" height="50px" style="border-radius:40px;">
|
<img class="img-thumbnail" src="{{$user->avatarUrl()}}" width="24px" height="24px" style="border-radius:12px;">
|
||||||
</div>
|
</div>
|
||||||
<div class="username">
|
<div class="username">
|
||||||
<a href="{{$user->url()}}" class="username-link font-weight-bold text-dark">{{$user->username}}</a>
|
<a href="{{$user->url()}}" class="username-link font-weight-bold text-dark">{{$user->username}}</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="timestamp mb-0">
|
||||||
|
<p class="small text-uppercase mb-0"><a href="{{$status->url()}}" class="text-muted">{{$status->created_at->diffForHumans()}}</a></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<hr>
|
<hr>
|
||||||
<div class="pr-3 mb-2 status-comments">
|
<div class="card-body status-comments">
|
||||||
<div class="status-comment">
|
<div class="status-comment">
|
||||||
<span class="font-weight-bold pr-1">{{$status->profile->username}}</span>
|
|
||||||
<p class="mb-1">
|
<p class="mb-1">
|
||||||
|
<span class="font-weight-bold pr-1">{{$status->profile->username}}</span>
|
||||||
<span class="comment-text">{!! $status->rendered ?? e($status->caption) !!}</span>
|
<span class="comment-text">{!! $status->rendered ?? e($status->caption) !!}</span>
|
||||||
</p>
|
</p>
|
||||||
<div class="comments">
|
<div class="comments">
|
||||||
|
@ -37,12 +39,12 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div class="card-body flex-grow-0">
|
||||||
<div class="reactions h3 pr-3 mb-0">
|
<div class="reactions h3 mb-0">
|
||||||
<form class="like-form pr-3" method="post" action="/i/like" style="display: inline;" data-id="{{$status->id}}" data-action="like">
|
<form class="d-inline-flex like-form pr-3" method="post" action="/i/like" style="display: inline;" data-id="{{$status->id}}" data-action="like">
|
||||||
@csrf
|
@csrf
|
||||||
<input type="hidden" name="item" value="{{$status->id}}">
|
<input type="hidden" name="item" value="{{$status->id}}">
|
||||||
<button class="btn btn-link text-dark p-0" type="submit"><span class="icon-heart" style="font-size:25px;"></span></button>
|
<button class="btn btn-link text-dark p-0" type="submit"><h3 class="icon-heart mb-0"></h3></button>
|
||||||
</form>
|
</form>
|
||||||
<span class="icon-speech pr-3"></span>
|
<span class="icon-speech pr-3"></span>
|
||||||
@if(Auth::check())
|
@if(Auth::check())
|
||||||
|
@ -51,26 +53,23 @@
|
||||||
@csrf
|
@csrf
|
||||||
<input type="hidden" name="type" value="post">
|
<input type="hidden" name="type" value="post">
|
||||||
<input type="hidden" name="item" value="{{$status->id}}">
|
<input type="hidden" name="item" value="{{$status->id}}">
|
||||||
<button type="submit" class="btn btn-link text-dark p-0"><span class="icon-trash" style="font-size:25px;"></span></button>
|
<button type="submit" class="btn btn-link text-dark p-0"><h3 class="icon-trash mb-0"></h3></button>
|
||||||
</form>
|
</form>
|
||||||
@endif
|
@endif
|
||||||
@endif
|
@endif
|
||||||
<span class="float-right">
|
<span class="float-right">
|
||||||
<form class="bookmark-form" method="post" action="/i/bookmark" style="display: inline;" data-id="{{$status->id}}" data-action="bookmark">
|
<form class="d-inline-flex bookmark-form" method="post" action="/i/bookmark" style="display: inline;" data-id="{{$status->id}}" data-action="bookmark">
|
||||||
@csrf
|
@csrf
|
||||||
<input type="hidden" name="item" value="{{$status->id}}">
|
<input type="hidden" name="item" value="{{$status->id}}">
|
||||||
<button class="btn btn-link text-dark p-0" type="submit"><span class="icon-notebook" style="font-size:25px;"></span></button>
|
<button class="btn btn-link text-dark p-0" type="submit"><h3 class="icon-notebook mb-0"></h3></button>
|
||||||
</form>
|
</form>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="likes font-weight-bold mb-0">
|
<div class="likes font-weight-bold mb-0">
|
||||||
<span class="like-count">{{$status->likes()->count()}}</span> likes
|
<span class="like-count">{{$status->likes()->count()}}</span> likes
|
||||||
</div>
|
</div>
|
||||||
<div class="timestamp mb-0">
|
|
||||||
<p class="small text-uppercase mb-0"><a href="{{$status->url()}}" class="text-muted">{{$status->created_at->diffForHumans()}}</a></p>
|
|
||||||
</div>
|
</div>
|
||||||
<hr class="my-2">
|
<div class="card-footer">
|
||||||
<div class="pr-3 pb-2">
|
|
||||||
<form class="comment-form" method="post" action="/i/comment" data-id="{{$status->id}}" data-truncate="false">
|
<form class="comment-form" method="post" action="/i/comment" data-id="{{$status->id}}" data-truncate="false">
|
||||||
@csrf
|
@csrf
|
||||||
<input type="hidden" name="item" value="{{$status->id}}">
|
<input type="hidden" name="item" value="{{$status->id}}">
|
||||||
|
@ -81,7 +80,5 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
@endsection
|
@endsection
|
Loading…
Reference in New Issue