mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-09 16:24:51 +00:00
Update admin views
This commit is contained in:
parent
fc12f1eba5
commit
e33dd43dc2
4 changed files with 45 additions and 6 deletions
|
@ -17,7 +17,8 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
<table class="table table-responsive">
|
<div class="table-responsive">
|
||||||
|
<table class="table">
|
||||||
<thead class="bg-light">
|
<thead class="bg-light">
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="col">#</th>
|
<th scope="col">#</th>
|
||||||
|
@ -45,4 +46,5 @@
|
||||||
@endforeach
|
@endforeach
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
</div>
|
||||||
@endsection
|
@endsection
|
|
@ -11,10 +11,10 @@
|
||||||
<div class="col-md-4">
|
<div class="col-md-4">
|
||||||
<div class="card" style="min-height:125px">
|
<div class="card" style="min-height:125px">
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<p class="small text-uppercase font-weight-bold text-muted">Alerts</p>
|
<p class="small text-uppercase font-weight-bold text-muted">New Messages</p>
|
||||||
<p class="h2 mb-0">0</p>
|
<p class="h2 mb-0">{{$data['contact']['count']}}</p>
|
||||||
</div>
|
</div>
|
||||||
<canvas width="100" height="10" class="sparkline mb-1" data-chart_values="[0,0]"></canvas>
|
<canvas width="100" height="10" class="sparkline mb-1" data-chart_values="{{$data['contact']['graph']}}"></canvas>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
36
resources/views/admin/messages/home.blade.php
Normal file
36
resources/views/admin/messages/home.blade.php
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
@extends('admin.partial.template-full')
|
||||||
|
|
||||||
|
@section('section')
|
||||||
|
<div class="title">
|
||||||
|
<h3 class="font-weight-bold d-inline-block">Messages</h3>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<hr>
|
||||||
|
<div class="table-responsive">
|
||||||
|
<table class="table">
|
||||||
|
<thead class="bg-light">
|
||||||
|
<tr>
|
||||||
|
<th scope="col">#</th>
|
||||||
|
<th scope="col">User</th>
|
||||||
|
<th scope="col">Message</th>
|
||||||
|
<th scope="col">Created</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
@foreach($messages as $msg)
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<a href="/i/admin/messages/show/{{$msg->id}}" class="btn btn-sm btn-outline-primary">
|
||||||
|
{{$msg->id}}
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
|
<td class="font-weight-bold"><a href="{{$msg->user->url()}}">{{$msg->user->username}}</a></td>
|
||||||
|
<td class="font-weight-bold">{{str_limit($msg->message, 40)}}</td>
|
||||||
|
<td class="font-weight-bold">{{$msg->created_at->diffForHumans()}}</td>
|
||||||
|
</tr>
|
||||||
|
@endforeach
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
{{$messages->links()}}
|
||||||
|
@endsection
|
|
@ -8,8 +8,8 @@
|
||||||
<li class="nav-item mx-2 {{request()->is('*admin/dashboard')?'active':''}}">
|
<li class="nav-item mx-2 {{request()->is('*admin/dashboard')?'active':''}}">
|
||||||
<a class="nav-link" href="{{route('admin.home')}}">Dashboard</a>
|
<a class="nav-link" href="{{route('admin.home')}}">Dashboard</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="nav-item mx-2 {{request()->is('*apps*')?'active':''}}">
|
<li class="nav-item mx-2 {{request()->is('*messages*')?'active':''}}">
|
||||||
<a class="nav-link font-weight-lighter text-muted" href="{{route('admin.apps')}}">Apps</a>
|
<a class="nav-link font-weight-lighter text-muted" href="{{route('admin.messages')}}">Messages</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="nav-item mx-2 {{request()->is('*hashtags*')?'active':''}}">
|
<li class="nav-item mx-2 {{request()->is('*hashtags*')?'active':''}}">
|
||||||
<a class="nav-link font-weight-lighter text-muted" href="{{route('admin.hashtags')}}">Hashtags</a>
|
<a class="nav-link font-weight-lighter text-muted" href="{{route('admin.hashtags')}}">Hashtags</a>
|
||||||
|
@ -37,6 +37,7 @@
|
||||||
More
|
More
|
||||||
</a>
|
</a>
|
||||||
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown">
|
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown">
|
||||||
|
<a class="dropdown-item font-weight-bold {{request()->is('*apps*')?'active':''}}" href="{{route('admin.apps')}}">Apps</a>
|
||||||
<a class="dropdown-item font-weight-bold {{request()->is('*discover*')?'active':''}}" href="{{route('admin.discover')}}">Discover</a>
|
<a class="dropdown-item font-weight-bold {{request()->is('*discover*')?'active':''}}" href="{{route('admin.discover')}}">Discover</a>
|
||||||
<div class="dropdown-divider"></div>
|
<div class="dropdown-divider"></div>
|
||||||
<a class="dropdown-item font-weight-bold" href="/horizon">Horizon</a>
|
<a class="dropdown-item font-weight-bold" href="/horizon">Horizon</a>
|
||||||
|
|
Loading…
Reference in a new issue