mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-30 02:03:16 +00:00
55 lines
No EOL
1.4 KiB
PHP
55 lines
No EOL
1.4 KiB
PHP
@extends('admin.partial.template')
|
|
|
|
@section('section')
|
|
<div class="title">
|
|
<h3 class="font-weight-bold">Statuses</h3>
|
|
</div>
|
|
|
|
<hr>
|
|
|
|
<table class="table">
|
|
<thead class="thead-dark">
|
|
<tr>
|
|
<th scope="col">#</th>
|
|
<th scope="col">Username</th>
|
|
<th scope="col">Caption</th>
|
|
<th scope="col">Storage</th>
|
|
<th scope="col">Created</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach($statuses as $status)
|
|
<tr>
|
|
<th scope="row">
|
|
<a href="/statuses/show/{{$status->id}}">
|
|
{{$status->id}}
|
|
</a>
|
|
</th>
|
|
<td>{{$status->profile->username}}</td>
|
|
<td>{{str_limit($status->caption, 30)}}</td>
|
|
@if(!$status->media_path)
|
|
<td>0</td>
|
|
@else
|
|
<td><div class="human-size" data-bytes="{{$status->firstMedia()->size}}">{{$status->firstMedia()->size}}</div></td>
|
|
@endif
|
|
<td>{{$status->created_at->diffForHumans()}}</td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
<div class="d-flex justify-content-center mt-5">
|
|
{{$statuses->links()}}
|
|
</div>
|
|
@endsection
|
|
|
|
@push('scripts')
|
|
<script type="text/javascript">
|
|
$(document).ready(function() {
|
|
$('.human-size').each(function(d,a) {
|
|
let el = $(a);
|
|
let size = el.data('bytes');
|
|
el.text(filesize(size, {round: 0}));
|
|
});
|
|
});
|
|
</script>
|
|
@endpush |