1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-25 01:05:36 +00:00
pixelfed/resources/views/admin/statuses/home.blade.php

55 lines
1.6 KiB
PHP
Raw Normal View History

2019-01-31 21:23:36 +00:00
@extends('admin.partial.template-full')
2018-05-20 21:50:11 +00:00
@section('section')
<div class="title">
<h3 class="font-weight-bold">Statuses</h3>
</div>
<hr>
<table class="table">
2019-06-11 02:37:03 +00:00
<thead class="bg-light">
2018-05-20 21:50:11 +00:00
<tr>
2019-06-11 02:37:03 +00:00
<th scope="col" class="border-0 text-dark">#</th>
<th scope="col" class="border-0 text-dark">Username</th>
<th scope="col" class="border-0 text-dark">Likes</th>
<th scope="col" class="border-0 text-dark">Storage</th>
<th scope="col" class="border-0 text-dark">Created</th>
2018-05-20 21:50:11 +00:00
</tr>
</thead>
<tbody>
@foreach($statuses as $status)
<tr>
<th scope="row">
2019-01-31 21:23:36 +00:00
<a href="{{$status->url()}}">
2018-05-20 21:50:11 +00:00
{{$status->id}}
</a>
</th>
2018-05-30 02:49:25 +00:00
<td class="font-weight-bold">{{$status->profile->username}}</td>
<td class="font-weight-bold">{{$status->likes()->count()}}</td>
2018-05-20 21:50:11 +00:00
@if(!$status->media_path)
2018-05-30 02:49:25 +00:00
<td class="font-weight-bold">0</td>
2018-05-20 21:50:11 +00:00
@else
<td><div class="human-size" data-bytes="{{$status->firstMedia()->size}}">{{$status->firstMedia()->size}}</div></td>
@endif
2018-05-30 02:49:25 +00:00
<td class="font-weight-bold">{{$status->created_at->diffForHumans(null, true, true, true)}}</td>
2018-05-20 21:50:11 +00:00
</tr>
@endforeach
</tbody>
</table>
2018-05-30 02:49:25 +00:00
<div class="d-flex justify-content-center mt-5 small">
2018-05-20 21:50:11 +00:00
{{$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