add table count to user list, padding to help bubble, better date formatting and tooltip
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
|
||||
@section('content')
|
||||
@if($showGreeter)
|
||||
@include('greeter')
|
||||
@include('_greeter')
|
||||
@endif
|
||||
|
||||
<div class="row justify-content-center">
|
||||
@@ -24,9 +24,14 @@
|
||||
<span class="list-group-item">No users yet.</span>
|
||||
@else
|
||||
@foreach($users as $user)
|
||||
<a class="list-group-item list-group-item-action"
|
||||
href="{{ route('profile.view', $user->name) }}">
|
||||
@icon(fa-user-circle-o fa-pr){{ $user->title }}<br>
|
||||
<a class="list-group-item list-group-item-action" href="{{ route('profile.view', $user->name) }}">
|
||||
<span class="d-flex">
|
||||
@icon(fa-user-circle-o fa-pr)
|
||||
<span class="flex-grow-1">{{ $user->title }}</span>
|
||||
<span>
|
||||
{{ $user->tables_count }} table{{$user->tables_count!=1?'s':''}}
|
||||
</span>
|
||||
</span>
|
||||
<small>{{ $user->handle }}</small>
|
||||
</a>
|
||||
@endforeach
|
||||
@@ -44,6 +49,10 @@
|
||||
<nav class="ml-auto" aria-label="Pages of the table list">
|
||||
{{ $tables->links(null, ['ulClass' => 'pagination-sm mb-0 pagination-outline-light']) }}
|
||||
</nav>
|
||||
|
||||
@if(authed())
|
||||
<a href="{{route('table.create')}}" class="btn ml-3" aria-label="New Table">New</a>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
@include('profile._table-list', ['showAuthors' => true])
|
||||
|
||||
Reference in New Issue
Block a user