Split table.view to multiple files
This commit is contained in:
@@ -0,0 +1,57 @@
|
||||
{{--
|
||||
args: $table
|
||||
--}}
|
||||
|
||||
<nav aria-label="Table action buttons">
|
||||
@sr(Table actions)
|
||||
|
||||
@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 ?: '–' }}
|
||||
@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->favourites_count ?: '–' }}
|
||||
@icon(fa-star, sr:Favourites)
|
||||
</a>
|
||||
@else
|
||||
<div class="btn-group" role="group" aria-label="Fork">
|
||||
<a href="" class="btn btn-outline-primary py-1 btn-sm btn-square" title="Fork"
|
||||
data-toggle="tooltip" data-placement="top">
|
||||
@icon(fa-code-fork, sr:Fork)
|
||||
</a>
|
||||
<a href="" class="btn btn-outline-primary py-1 btn-sm" title="Fork Count"
|
||||
data-toggle="tooltip" data-placement="top">
|
||||
{{ $table->forks_count ?: '–' }}
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="btn-group" role="group" aria-label="Favourite">
|
||||
@if(user()->favouritesTable($table))
|
||||
<a href="" class="btn btn-outline-primary py-1 btn-sm btn-square" title="Un-favourite"
|
||||
data-toggle="tooltip" data-placement="top">
|
||||
@icon(fa-star, sr:Un-favourite)
|
||||
</a>
|
||||
@else
|
||||
<a href="" class="btn btn-outline-primary py-1 btn-sm btn-square" title="Favourite"
|
||||
data-toggle="tooltip" data-placement="top">
|
||||
@icon(fa-star-o, sr:Favourite)
|
||||
</a>
|
||||
@endif
|
||||
|
||||
<a href="" class="btn btn-outline-primary py-1 btn-sm" title="Favourite Count"
|
||||
data-toggle="tooltip" data-placement="top">
|
||||
{{ $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 ?: '–' }}
|
||||
@icon(fa-comment, sr:Comments)
|
||||
</a>
|
||||
</nav>
|
||||
Reference in New Issue
Block a user