Update admin storage settings view

pull/780/head
Daniel Supernault 6 years ago
parent 01d14c649a
commit 796e3ae4de
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7

@ -1,30 +1,24 @@
@extends('admin.partial.template') @extends('admin.partial.template')
@include('admin.settings.sidebar')
@section('section') @section('section')
<div class="title"> <div class="title">
<h3 class="font-weight-bold">Storage</h3> <h3 class="font-weight-bold">Storage</h3>
<p class="lead">Filesystem storage stats</p>
</div> </div>
<hr> <hr>
<p class="alert alert-warning">
<div class="card"> <strong>Feature Unavailable:</strong> This feature will be released in v0.9.0.
<div class="card-body"> </p>
<div class="progress">
<div class="progress-bar" role="progressbar" style="width: {{$storage->percentUsed}}%" aria-valuenow="{{$storage->percentUsed}}" aria-valuemin="0" aria-valuemax="100"></div>
</div>
<div class="d-flex justify-content-between">
<span class="font-weight-bold">
Used: {{$storage->prettyTotal}}
</span>
<span class="font-weight-bold">
{{$storage->percentUsed}}% Used
</span>
<span class="font-weight-bold">
Free: {{$storage->prettyFree}}
</span>
</div>
</div>
<div class="card-footer bg-white font-weight-bold text-center">
Total Disk Space
</div>
</div>
@endsection @endsection
@push('scripts')
<script type="text/javascript">
$('.human-size').each(function(d,a) {
let el = $(a);
let size = el.data('bytes');
el.text(filesize(size, {round: 0}));
});
</script>
@endpush

Loading…
Cancel
Save