datatable.directory codebase
https://datatable.directory/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
2.0 KiB
49 lines
2.0 KiB
<div class="list-group list-group-flush">
|
|
@if(count($tables) == 0)
|
|
<span class="list-group-item">No tables yet.</span>
|
|
@else
|
|
@foreach($tables as $table)
|
|
@php
|
|
$forks = $table->forks_count;
|
|
$faves = $table->favourites_count;
|
|
$revs = $table->revisions_count;
|
|
$rows = $table->revision->row_count;
|
|
@endphp
|
|
<a class="list-group-item list-group-item-action"
|
|
href="{{$table->viewPage}}">
|
|
<span class="d-block row">{{-- this must be span so that Lynx includes the table name in the anchor --}}
|
|
<div class="d-inline-block col-7">
|
|
@icon(fa-table fa-pr){{ $table->title }}
|
|
</div>{{--
|
|
--}}<div class="d-inline-block col-5 small text-right">{{--
|
|
--}}<span title="Visits" class="d-inline-block" style="min-width: 60px;">
|
|
{{ $table->visits }}@icon(fa-eye fa-pl, ~Visits~~)
|
|
</span>{{--
|
|
--}}<span title="Forks" class="d-inline-block {{$forks==0?'hidden':''}}" style="min-width: 60px;">
|
|
{{ $forks }}@icon(fa-code-fork fa-pl, ~Forks~~)
|
|
</span>{{--
|
|
--}}<span title="Favourites" class="d-inline-block {{$faves==0?'hidden':''}}" style="min-width: 60px;">
|
|
{{ $faves }}@icon(fa-star fa-pl, ~Favourites~~)
|
|
</span>{{--
|
|
--}}<span title="Revisions" class="d-inline-block" style="min-width: 60px;">
|
|
{{ $revs }}@icon(fa-history fa-pl, ~Revisions~~)
|
|
</span>{{--
|
|
--}}<span title="Rows" class="d-inline-block" style="min-width: 60px;">
|
|
{{ $rows }}@icon(fa-th-list fa-pl, ~Rows)
|
|
</span>{{--
|
|
--}}
|
|
</div>
|
|
</span>
|
|
|
|
<div class="d-block small row">
|
|
<div class="d-inline-block col-8">
|
|
@sr(Description:~){{ ellipsis($table->description, 215) }}
|
|
</div>{{--
|
|
--}}<div class="d-inline-block col-4 text-right text-muted">
|
|
Last change {{ $table->updated_at->diffForHumans() }}
|
|
</div>
|
|
</div>
|
|
</a>
|
|
@endforeach
|
|
@endif
|
|
</div>
|
|
|