add table count to user list, padding to help bubble, better date formatting and tooltip
This commit is contained in:
Vendored
+6
@@ -20,3 +20,9 @@ html {
|
||||
@import "bootstrap-customizations/button";
|
||||
@import "bootstrap-customizations/responsive";
|
||||
@import "bootstrap-customizations/typography";
|
||||
|
||||
.bio-table {
|
||||
td {
|
||||
padding-top: $sp1;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
<p>
|
||||
This website is a place for sharing useful tables of structured data.
|
||||
These can be cipher tables, character maps, lists of electronic components,
|
||||
paper grades, page formats, or scientific datasets, such as lists of countries,
|
||||
page formats, Pokémon attributes, or scientific datasets, such as lists of countries,
|
||||
geographic features, celestial bodies, elements, nutrition values, etc.
|
||||
Anything you can put in a table can be shared here, as long as it conforms to our
|
||||
<a href="{{route('terms')}}">Terms of Service</a>. You can search, filter, and export
|
||||
@@ -1,5 +1,5 @@
|
||||
@if($help)
|
||||
<i class="fa-question-circle form-help"
|
||||
<i class="fa-question-circle form-help pr-1"
|
||||
data-toggle="tooltip"
|
||||
data-placement="right"
|
||||
@if(false!==strpos($help, '<'))
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<table>
|
||||
<table class="bio-table">
|
||||
<tbody>
|
||||
@if($user->website)
|
||||
<tr>
|
||||
@@ -49,9 +49,19 @@
|
||||
<td>{{ $user->handle }}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="text-center pr-2">@icon(fa-table, Tables:)</td>
|
||||
<td>{{ $tables_count }} table{{$tables_count!=1?'s':''}}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="text-center pr-2">@icon(fa-calendar, Join date:)</td>
|
||||
<td>Joined {{ $user->created_at->diffForHumans() }}</td>
|
||||
<td>
|
||||
<span class="pr-1" data-toggle="tooltip" data-placement="right"
|
||||
title="{{ $user->created_at->format('M n, Y \\a\\t G:i') }}">
|
||||
Joined {{ $user->created_at->diffForHumans() }}
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
@@ -82,12 +82,16 @@
|
||||
|
||||
{{-- Description field --}}
|
||||
<div class="col-md-8 pl-md-0">
|
||||
<b>Description</b>
|
||||
@if($table->description)
|
||||
<b>Description</b>
|
||||
{!! Widget::collapsible($table->description, 400, '8em') !!}
|
||||
@if($table->origin)
|
||||
<div class="mt-2"></div>{{-- spacer --}}
|
||||
@endif
|
||||
@else
|
||||
<p>
|
||||
<i>No description.</i>
|
||||
</p>
|
||||
@endif
|
||||
|
||||
@if($table->origin)
|
||||
@@ -119,8 +123,8 @@
|
||||
<tr>
|
||||
<th class="text-right pr-2">Created</th>
|
||||
<td>
|
||||
<span data-toggle="tooltip" data-placement="right" title="{{ $table->created_at->format("G:i:s") }}">
|
||||
{{ $table->created_at->format("M j, Y") }}
|
||||
<span class="pr-1" data-toggle="tooltip" data-placement="right" title="{{ $table->created_at->format("M n, Y \\a\\t G:i") }}">
|
||||
{{ $table->created_at->diffForHumans() }}
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -128,8 +132,8 @@
|
||||
<tr>
|
||||
<th class="text-right pr-2">Updated</th>
|
||||
<td>
|
||||
<span data-toggle="tooltip" data-placement="right" title="{{ $table->updated_at->format("G:i:s") }}">
|
||||
{{ $table->updated_at->format("M j, Y") }}
|
||||
<span class="pr-1" data-toggle="tooltip" data-placement="right" title="{{ $table->updated_at->format("M n, Y \\a\\t G:i") }}">
|
||||
{{ $table->updated_at->diffForHumans() }}
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -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