add table count to user list, padding to help bubble, better date formatting and tooltip

This commit is contained in:
2018-07-29 13:31:05 +02:00
parent 550cf30654
commit ffc5a42252
9 changed files with 52 additions and 16 deletions
+13 -4
View File
@@ -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])