public dash and view counting
This commit is contained in:
@@ -23,13 +23,13 @@
|
||||
@if(guest() || user()->ownsTable($table))
|
||||
<a href="" class="btn btn-outline-primary py-1 btn-sm" title="Forks"
|
||||
data-toggle="tooltip" data-placement="top">
|
||||
{{ $table->forks()->count() ?: '–' }}
|
||||
{{ $table->forks_count ?: '–' }}
|
||||
@icon(fa-code-fork, sr:Forks)
|
||||
</a>
|
||||
|
||||
<a href="#" class="btn btn-outline-primary py-1 btn-sm"
|
||||
title="Favourites" data-toggle="tooltip" data-placement="top">
|
||||
{{ $table->favouritingUsers()->count() ?: '–' }}
|
||||
{{ $table->favourites_count ?: '–' }}
|
||||
@icon(fa-star, sr:Favourites)
|
||||
</a>
|
||||
@else
|
||||
@@ -40,7 +40,7 @@
|
||||
</a>
|
||||
<a href="" class="btn btn-outline-primary py-1 btn-sm" title="Fork Count"
|
||||
data-toggle="tooltip" data-placement="top">
|
||||
{{ $table->forks()->count() ?: '–' }}
|
||||
{{ $table->forks_count ?: '–' }}
|
||||
</a>
|
||||
</div>
|
||||
|
||||
@@ -59,14 +59,14 @@
|
||||
|
||||
<a href="" class="btn btn-outline-primary py-1 btn-sm" title="Favourite Count"
|
||||
data-toggle="tooltip" data-placement="top">
|
||||
{{ $table->favouritingUsers()->count() ?: '–' }}
|
||||
{{ $table->favourites_count ?: '–' }}
|
||||
</a>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<a href="" class="btn btn-outline-primary py-1 btn-sm" title="Comments"
|
||||
data-toggle="tooltip" data-placement="top">
|
||||
{{ $table->comments()->count() ?: '–' }}
|
||||
{{ $table->comments_count ?: '–' }}
|
||||
@icon(fa-comment, sr:Comments)
|
||||
</a>
|
||||
</nav>
|
||||
@@ -91,7 +91,7 @@
|
||||
@endif
|
||||
|
||||
@if($table->origin)
|
||||
<p class="last-p-mb-0">
|
||||
<p>
|
||||
<b>Adapted From</b><br>
|
||||
{!! Widget::tryLink($table->origin) !!}
|
||||
</p>
|
||||
@@ -118,17 +118,30 @@
|
||||
|
||||
<tr>
|
||||
<th class="text-right pr-2">Created</th>
|
||||
<td>{{ $table->created_at->format("M j, Y") }}</td>
|
||||
<td>
|
||||
<span data-toggle="tooltip" data-placement="right" title="{{ $table->created_at->format("G:i:s") }}">
|
||||
{{ $table->created_at->format("M j, Y") }}
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th class="text-right pr-2">Updated</th>
|
||||
<td>{{ $table->updated_at->format("M j, Y") }}</td>
|
||||
<td>
|
||||
<span data-toggle="tooltip" data-placement="right" title="{{ $table->updated_at->format("G:i:s") }}">
|
||||
{{ $table->updated_at->format("M j, Y") }}
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th class="text-right pr-2">Revisions</th>
|
||||
<td>{{ $table->revisions()->count() }}</td>
|
||||
<td>{{ $table->revisions_count }}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th class="text-right pr-2">Visits</th>
|
||||
<td>{{ $table->visits }} {!! Widget::help('Visitors counted once per day') !!}</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
|
||||
Reference in New Issue
Block a user