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