1
0
Fork 0

Add admin media show view

This commit is contained in:
Daniel Supernault 2019-01-21 13:10:30 -07:00
parent 8722f83040
commit 2fe66b63f0
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7
1 changed files with 41 additions and 0 deletions

View File

@ -0,0 +1,41 @@
@extends('admin.partial.template')
@section('section')
<div class="title">
<h3 class="font-weight-bold d-inline-block">Media</h3>
<p class="font-weight-lighter mb-0">ID: {{$media->id}}</p>
</div>
<hr>
<div class="row">
<div class="col-12 col-md-8 offset-md-2">
<div class="card">
<img class="card-img-top" src="{{$media->thumb()}}">
<ul class="list-group list-group-flush">
<li class="list-group-item d-flex justify-content-between">
<div>
<p class="mb-0 small">status id: <a href="{{$media->status->url()}}" class="font-weight-bold">{{$media->status_id}}</a></p>
<p class="mb-0 small">username: <a href="{{$media->profile->url()}}" class="font-weight-bold">{{$media->profile->username}}</a></p>
<p class="mb-0 small">size: <span class="filesize font-weight-bold" data-size="{{$media->size}}">0</span></p>
</div>
<div>
<p class="mb-0 small">mime: <span class="font-weight-bold">{{$media->mime}}</span></p>
<p class="mb-0 small">content warning: <i class="fas {{$media->is_nsfw ? 'fa-check text-danger':'fa-times text-success'}}"></i></p>
<p class="mb-0 small">
remote media: <i class="fas {{$media->remote_media ? 'fa-check text-danger':'fa-times text-success'}}"></i></p>
</div>
</li>
</ul>
</div>
</div>
</div>
@endsection
@push('scripts')
<script type="text/javascript">
$(document).ready(function() {
$('.filesize').each(function(k,v) {
$(this).text(filesize(v.getAttribute('data-size')))
});
});
</script>
@endpush