1
0
Fork 0
forked from mirror/pixelfed

Update admin views

This commit is contained in:
Daniel Supernault 2019-07-21 22:11:33 -06:00
parent e0fa8327b8
commit f5a729e3b3
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7
4 changed files with 23 additions and 62 deletions

View file

@ -9,7 +9,7 @@
<div class="row">
<div class="col-md-4">
<div class="card" style="min-height:125px">
<div class="card shadow-none border" style="min-height:125px">
<div class="card-body">
<p class="small text-uppercase font-weight-bold text-muted">New Messages</p>
<p class="h2 mb-0">{{$data['contact']['count']}}</p>
@ -19,7 +19,7 @@
</div>
<div class="col-md-4">
<div class="card" style="min-height:125px">
<div class="card shadow-none border" style="min-height:125px">
<div class="card-body">
<p class="small text-uppercase font-weight-bold text-muted">Failed Jobs (24h)</p>
<p class="h2 mb-0">{{$data['failedjobs']['count']}}</p>
@ -29,7 +29,7 @@
</div>
<div class="col-md-4">
<div class="card" style="min-height:125px">
<div class="card shadow-none border" style="min-height:125px">
<div class="card-body">
<p class="small text-uppercase font-weight-bold text-muted">Reports</p>
<p class="h2 mb-0" title="{{$data['reports']['count']}}" data-toggle="tooltip">{{$data['reports']['count']}}</p>
@ -41,7 +41,7 @@
<div class="row mt-4">
<div class="col-md-4">
<div class="card" style="min-height:125px">
<div class="card shadow-none border" style="min-height:125px">
<div class="card-body">
<p class="small text-uppercase font-weight-bold text-muted">Statuses</p>
<p class="h2 mb-0" title="{{$data['statuses']['count']}}" data-toggle="tooltip">{{$data['statuses']['count']}}</p>
@ -51,7 +51,7 @@
</div>
<div class="col-md-4">
<div class="card" style="min-height:125px">
<div class="card shadow-none border" style="min-height:125px">
<div class="card-body">
<p class="small text-uppercase font-weight-bold text-muted">Replies</p>
<p class="h2 mb-0" title="{{$data['replies']['count']}}" data-toggle="tooltip">{{$data['replies']['count']}}</p>
@ -60,7 +60,7 @@
</div>
</div>
<div class="col-md-4">
<div class="card" style="min-height:125px">
<div class="card shadow-none border" style="min-height:125px">
<div class="card-body">
<p class="small text-uppercase font-weight-bold text-muted">Shares (Reblogs)</p>
<p class="h2 mb-0">{{$data['shares']['count']}}</p>
@ -72,7 +72,7 @@
<div class="row mt-4">
<div class="col-md-4">
<div class="card" style="min-height:125px">
<div class="card shadow-none border" style="min-height:125px">
<div class="card-body">
<p class="small text-uppercase font-weight-bold text-muted">Likes</p>
<p class="h2 mb-0">{{$data['likes']['count']}}</p>
@ -82,7 +82,7 @@
</div>
<div class="col-md-4">
<div class="card" style="min-height:125px">
<div class="card shadow-none border" style="min-height:125px">
<div class="card-body">
<p class="small text-uppercase font-weight-bold text-muted">Profiles</p>
<p class="h2 mb-0">{{$data['profiles']['count']}}</p>
@ -92,7 +92,7 @@
</div>
<div class="col-md-4">
<div class="card" style="min-height:125px">
<div class="card shadow-none border" style="min-height:125px">
<div class="card-body">
<p class="small text-uppercase font-weight-bold text-muted">Users</p>
<p class="h2 mb-0">{{$data['users']['count']}}</p>
@ -104,7 +104,7 @@
<div class="row mt-4">
<div class="col-md-4">
<div class="card" style="min-height:125px">
<div class="card shadow-none border" style="min-height:125px">
<div class="card-body">
<p class="small text-uppercase font-weight-bold text-muted">Remote Instances</p>
<p class="h2 mb-0">{{$data['instances']['count']}}</p>
@ -114,7 +114,7 @@
</div>
<div class="col-md-4">
<div class="card" style="min-height:125px">
<div class="card shadow-none border" style="min-height:125px">
<div class="card-body">
<p class="small text-uppercase font-weight-bold text-muted">Photos Uploaded</p>
<p class="h2 mb-0">{{$data['media']['count']}}</p>
@ -123,7 +123,7 @@
</div>
</div>
<div class="col-md-4">
<div class="card" style="min-height:125px">
<div class="card shadow-none border" style="min-height:125px">
<div class="card-body">
<p class="small text-uppercase font-weight-bold text-muted">Storage Used</p>
<p class="human-size mb-0" data-bytes="{{$data['storage']['count']}}">{{$data['storage']['count']}} bytes</p>

View file

@ -5,11 +5,11 @@
@include('admin.partial.topnav')
<div class="container">
<div class="col-12 mt-5">
<div class="card">
<div class="col-12 mt-4">
<div class="card shadow-none bg-transparent">
<div class="card-body p-0">
<div class="row">
<div class="col-12 px-5 py-4">
<div class="col-12">
@if (session('status'))
<div class="alert alert-success">
{{ session('status')}}

View file

@ -5,8 +5,8 @@
@include('admin.partial.topnav')
<div class="container">
<div class="col-12 mt-5">
<div class="card">
<div class="col-12 mt-4">
<div class="card shadow-none border">
<div class="card-body p-0">
<div class="row">
@include('admin.partial.sidebar')

View file

@ -73,56 +73,23 @@
<table class="table">
<thead class="bg-light">
<tr>
<th class="border-0" width="5%">
<div class="custom-control custom-checkbox table-check">
<input type="checkbox" class="custom-control-input row-check-item row-check-all" id="row-check-all">
<label class="custom-control-label" for="row-check-all"></label>
</div>
</th>
<th scope="col" class="border-0" width="10%">
<span>
ID
@if(request()->filter && request()->filter == 'id' && request()->order == 'asc')
<a href="#" class="col-ord" data-col="id" data-dir="desc"><i class="fas fa-chevron-down"></i></a>
@else
<a href="#" class="col-ord" data-col="id" data-dir="asc"><i class="fas fa-chevron-up"></i></a>
@endif
</span>
<span>ID</span>
</th>
<th scope="col" class="border-0" width="15%">
<span>
Username
@if(request()->filter && request()->filter == 'username' && request()->order == 'asc')
<a href="#" class="col-ord" data-col="username" data-dir="desc"><i class="fas fa-chevron-down"></i></a>
@else
<a href="#" class="col-ord" data-col="username" data-dir="asc"><i class="fas fa-chevron-up"></i></a>
@endif
</span>
<span>Username</span>
</th>
<th scope="col" class="border-0" width="20%">
<span>
Followers
</span>
<span>Followers</span>
</th>
<th scope="col" class="border-0" width="20%">
<span>
Likes
</span>
<span>Likes</span>
</th>
<th scope="col" class="border-0" width="20%">
<span>
Statuses
@if(request()->filter && request()->filter == 'statuses_count' && request()->order == 'asc')
<a href="#" class="col-ord" data-col="statuses_count" data-dir="desc"><i class="fas fa-chevron-down"></i></a>
@else
<a href="#" class="col-ord" data-col="statuses_count" data-dir="asc"><i class="fas fa-chevron-up"></i></a>
@endif
</span>
<span>Statuses</span>
</th>
<th scope="col" class="border-0" width="10%">
<span>
Storage
</span>
<span>Storage</span>
</th>
<th scope="col" class="border-0" width="10%">
<span>Actions</span>
@ -131,12 +98,6 @@
</thead>
@foreach($profiles as $profile)
<tr class="font-weight-bold text-center user-row">
<th scope="">
<div class="custom-control custom-checkbox">
<input type="checkbox" class="custom-control-input row-check-item" id="row-check-{{$profile->id}}" data-id="{{$profile->id}}">
<label class="custom-control-label" for="row-check-{{$profile->id}}"></label>
</div>
</th>
<td>
{{$profile->id}}
</td>