commented some buttons and displays for features not yet implemented
This commit is contained in:
@@ -5,19 +5,28 @@
|
||||
<nav aria-label="Table action buttons">
|
||||
@sr(Table actions)
|
||||
|
||||
{{-- Disabled until implemented --}}
|
||||
@if(false)
|
||||
|
||||
@if(guest() || user()->ownsTable($table))
|
||||
|
||||
{{-- Passive fork buttons with counter --}}
|
||||
<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"
|
||||
{{-- Passive favourite buttons with counter --}}
|
||||
<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
|
||||
|
||||
{{-- Active fork button | counter --}}
|
||||
<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">
|
||||
@@ -29,6 +38,7 @@
|
||||
</a>
|
||||
</div>
|
||||
|
||||
{{-- Active favourite button | counter --}}
|
||||
<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"
|
||||
@@ -47,11 +57,22 @@
|
||||
{{ $table->favourites_count ?: '–' }}
|
||||
</a>
|
||||
</div>
|
||||
|
||||
@endif
|
||||
|
||||
{{-- Comments button with counter --}}
|
||||
<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>
|
||||
|
||||
@endif
|
||||
|
||||
@if(user() && user()->ownsTable($table))
|
||||
<a href="" class="btn btn-outline-primary py-1 btn-sm"
|
||||
title="Table Options" data-toggle="tooltip" data-placement="top">
|
||||
@icon(fa-wrench, sr:Table Options)
|
||||
</a>
|
||||
@endif
|
||||
</nav>
|
||||
|
||||
Reference in New Issue
Block a user