mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-22 13:03:16 +00:00
Update admin users blade view, show last_active_at and other info
This commit is contained in:
parent
2bef3e415d
commit
e0b48b2976
1 changed files with 116 additions and 35 deletions
|
@ -58,42 +58,82 @@
|
||||||
<span class="badge badge-danger badge-sm">ADMIN</span>
|
<span class="badge badge-danger badge-sm">ADMIN</span>
|
||||||
</p>
|
</p>
|
||||||
@endif
|
@endif
|
||||||
<p class="mb-0 text-center text-muted">
|
|
||||||
Joined {{$profile->created_at->diffForHumans()}}
|
<div class="d-flex justify-content-around mt-3">
|
||||||
</p>
|
<div class="mb-0">
|
||||||
|
<p class="mb-n2 text-center text-dark font-weight-bold">
|
||||||
|
{{$profile->created_at->diffForHumans()}}
|
||||||
|
</p>
|
||||||
|
<p class="mb-0 text-center text-muted">
|
||||||
|
<span class="small">Joined</span>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
@if($user->last_active_at)
|
||||||
|
<div class="mb-0">
|
||||||
|
<p class="mb-n2 text-center text-dark font-weight-bold">
|
||||||
|
{{$user->last_active_at->diffForHumans()}}
|
||||||
|
</p>
|
||||||
|
<p class="mb-0 text-center text-muted">
|
||||||
|
<span class="small">Last Active</span>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
@endif
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<table class="table mb-0">
|
|
||||||
<tbody>
|
<div class="list-group list-group-flush details-list">
|
||||||
<tr>
|
<div class="list-group-item details-list-item">
|
||||||
<th scope="row" class="font-weight-bold text-muted text-uppercase pl-3 small" style="line-height: 2;">bookmarks</th>
|
<p class="details-list-item-title">email</p>
|
||||||
<td class="text-right font-weight-bold">{{$profile->bookmarks()->count()}}</td>
|
<p class="details-list-item-value text-truncate" title="{{$user->email}}">{{$user->email}}</p>
|
||||||
</tr>
|
</div>
|
||||||
<tr>
|
|
||||||
<th scope="row" class="font-weight-bold text-muted text-uppercase pl-3 small" style="line-height: 2;">collections</th>
|
@if($profile->website)
|
||||||
<td class="text-right font-weight-bold">{{$profile->collections()->count()}}</td>
|
<div class="list-group-item details-list-item">
|
||||||
</tr>
|
<p class="details-list-item-title">website</p>
|
||||||
<tr>
|
<p class="details-list-item-value text-truncate" title="{{$profile->website}}">{{$profile->website}}</p>
|
||||||
<th scope="row" class="font-weight-bold text-muted text-uppercase pl-3 small" style="line-height: 2;">likes</th>
|
</div>
|
||||||
<td class="text-right font-weight-bold">{{$profile->likes()->count()}}</td>
|
@endif
|
||||||
</tr>
|
|
||||||
<tr>
|
<div class="list-group-item details-list-item">
|
||||||
<th scope="row" class="font-weight-bold text-muted text-uppercase pl-3 small" style="line-height: 2;">reports</th>
|
<p class="details-list-item-title">bookmarks</p>
|
||||||
<td class="text-right font-weight-bold">{{$profile->reports()->count()}}</td>
|
<p class="details-list-item-value text-truncate">{{$profile->bookmarks()->count()}}</p>
|
||||||
</tr>
|
</div>
|
||||||
<tr>
|
|
||||||
<th scope="row" class="font-weight-bold text-muted text-uppercase pl-3 small" style="line-height: 2;">reported</th>
|
<div class="list-group-item details-list-item">
|
||||||
<td class="text-right font-weight-bold">{{$profile->reported()->count()}}</td>
|
<p class="details-list-item-title">collections</p>
|
||||||
</tr>
|
<p class="details-list-item-value text-truncate">{{$profile->collections()->count()}}</p>
|
||||||
<tr>
|
</div>
|
||||||
<th scope="row" class="font-weight-bold text-muted text-uppercase pl-3 small" style="line-height: 2;">Active stories</th>
|
|
||||||
<td class="text-right font-weight-bold">{{$profile->stories()->count()}}</td>
|
<div class="list-group-item details-list-item">
|
||||||
</tr>
|
<p class="details-list-item-title">likes</p>
|
||||||
<tr>
|
<p class="details-list-item-value text-truncate">{{$profile->likes()->count()}}</p>
|
||||||
<th scope="row" class="font-weight-bold text-muted text-uppercase pl-3 small" style="line-height: 2;">storage used</th>
|
</div>
|
||||||
<td class="text-right font-weight-bold">{{PrettyNumber::size($profile->media()->sum('size'))}}<span class="text-muted"> / {{PrettyNumber::size(config_cache('pixelfed.max_account_size') * 1000)}}</span></td>
|
|
||||||
</tr>
|
<div class="list-group-item details-list-item">
|
||||||
</tbody>
|
<p class="details-list-item-title">reports</p>
|
||||||
</table>
|
<p class="details-list-item-value text-truncate">{{$profile->reports()->count()}}</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="list-group-item details-list-item">
|
||||||
|
<p class="details-list-item-title">reported</p>
|
||||||
|
<p class="details-list-item-value text-truncate">{{$profile->reported()->count()}}</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="list-group-item details-list-item">
|
||||||
|
<p class="details-list-item-title">active stories</p>
|
||||||
|
<p class="details-list-item-value text-truncate">{{$profile->stories()->count()}}</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="list-group-item details-list-item">
|
||||||
|
<p class="details-list-item-title">storage used</p>
|
||||||
|
<p class="details-list-item-value text-truncate">{{PrettyNumber::size($profile->media()->sum('size'))}}<span class="text-muted"> / {{PrettyNumber::size(config_cache('pixelfed.max_account_size') * 1000)}}</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="list-group-item details-list-item">
|
||||||
|
<p class="details-list-item-title">bio</p>
|
||||||
|
<p class="details-list-item-value text-wrap text-xs">{{ $profile->bio }}</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-12 col-md-8">
|
<div class="col-12 col-md-8">
|
||||||
|
@ -119,3 +159,44 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
|
@push('styles')
|
||||||
|
<style type="text/css">
|
||||||
|
.gap-1 {
|
||||||
|
gap: 5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.details-list {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.details-list-item {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
gap: 5rem;
|
||||||
|
border-left: 0;
|
||||||
|
border-right: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.details-list-item-title {
|
||||||
|
margin-bottom: 0;
|
||||||
|
color: #9ca3af !important;
|
||||||
|
text-transform: uppercase !important;
|
||||||
|
font-weight: bold;
|
||||||
|
font-size: 13px;
|
||||||
|
opacity: 0.69;
|
||||||
|
}
|
||||||
|
|
||||||
|
.details-list-item-value {
|
||||||
|
font-size: 15px;
|
||||||
|
font-weight: 600;
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.text-xs {
|
||||||
|
font-size: 11px !important;
|
||||||
|
font-weight: normal;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
@endpush
|
||||||
|
|
Loading…
Reference in a new issue