1
0
Fork 0
forked from mirror/pixelfed

Make #122 responsive

Closes #119
This commit is contained in:
Daniel Supernault 2018-06-04 21:33:19 -06:00
parent e8b88f0b59
commit c2f6ffc043

View file

@ -6,33 +6,34 @@
</div> </div>
<hr> <hr>
<div class="table-responsive">
<table class="table"> <table class="table">
<thead class="thead-dark"> <thead class="thead-dark">
<tr> <tr>
<th scope="col">Username</th> <th scope="col">Username</th>
<th scope="col">Statuses</th> <th scope="col">Statuses</th>
<th scope="col">Storage</th> <th scope="col">Storage</th>
<th scope="col">Role</th> <th scope="col">Role</th>
<th scope="col">Created</th> <th scope="col">Created</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
@foreach($users as $user) @foreach($users as $user)
<tr> <tr>
<th scope="row"> <th scope="row">
<a href="{{$user->url()}}"> <a href="{{$user->url()}}">
{{$user->username}} {{$user->username}}
</a> </a>
</th> </th>
<td>{{$user->profile->statuses->count()}}</td> <td>{{$user->profile->statuses->count()}}</td>
<td><p class="human-size" data-bytes="{{App\Media::whereUserId($user->id)->sum('size')}}"></p></td> <td><p class="human-size" data-bytes="{{App\Media::whereUserId($user->id)->sum('size')}}"></p></td>
<td>{!!$user->is_admin ? '<span class="text-danger">admin</span>' : 'member'!!}</td> <td>{!!$user->is_admin ? '<span class="text-danger">admin</span>' : 'member'!!}</td>
<td>{{$user->created_at->diffForHumans(null, true, true)}}</td> <td>{{$user->created_at->diffForHumans(null, true, true)}}</td>
</tr> </tr>
@endforeach @endforeach
</tbody> </tbody>
</table> </table>
</div>
<div class="d-flex justify-content-center mt-5 small"> <div class="d-flex justify-content-center mt-5 small">
{{$users->links()}} {{$users->links()}}
</div> </div>