|
|
@ -12,21 +12,26 @@ |
|
|
|
@if(guest() || !user()->confirmed || user()->ownsTable($table)) |
|
|
|
@if(guest() || !user()->confirmed || user()->ownsTable($table)) |
|
|
|
{{-- Guest, unconfirmed, or a table owner --}} |
|
|
|
{{-- Guest, unconfirmed, or a table owner --}} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@if(FEATURE_FORKS) |
|
|
|
{{-- Passive fork buttons with counter --}} |
|
|
|
{{-- Passive fork buttons with counter --}} |
|
|
|
<a href="" class="btn btn-outline-primary py-1 btn-sm" @tooltip(Forks)> |
|
|
|
<a href="" class="btn btn-outline-primary py-1 btn-sm" @tooltip(Forks)> |
|
|
|
@icon(fa-code-fork, sr:Forks) |
|
|
|
@icon(fa-code-fork, sr:Forks) |
|
|
|
{{ $table->forks_count ?: '–' }} |
|
|
|
{{ $table->forks_count ?: '–' }} |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
|
|
|
|
@endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@if(FEATURE_FAVES) |
|
|
|
{{-- Passive favourite buttons with counter --}} |
|
|
|
{{-- Passive favourite buttons with counter --}} |
|
|
|
<a href="" class="btn btn-outline-primary py-1 btn-sm" @tooltip(Favourites)> |
|
|
|
<a href="" class="btn btn-outline-primary py-1 btn-sm" @tooltip(Favourites)> |
|
|
|
@icon(fa-star, sr:Favourites) |
|
|
|
@icon(fa-star, sr:Favourites) |
|
|
|
{{ $table->favourites_count ?: '–' }} |
|
|
|
{{ $table->favourites_count ?: '–' }} |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
|
|
|
|
@endif |
|
|
|
|
|
|
|
|
|
|
|
@else |
|
|
|
@else |
|
|
|
{{-- Logged in and does not own the table --}} |
|
|
|
{{-- Logged in and does not own the table --}} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@if(FEATURE_FORKS) |
|
|
|
{{-- Active fork button | counter --}} |
|
|
|
{{-- Active fork button | counter --}} |
|
|
|
<div class="btn-group" role="group" aria-label="Fork"> |
|
|
|
<div class="btn-group" role="group" aria-label="Fork"> |
|
|
|
<a href="" class="btn btn-outline-primary py-1 btn-sm btn-square" @tooltip(Fork)> |
|
|
|
<a href="" class="btn btn-outline-primary py-1 btn-sm btn-square" @tooltip(Fork)> |
|
|
@ -36,7 +41,9 @@ |
|
|
|
{{ $table->forks_count ?: '–' }} |
|
|
|
{{ $table->forks_count ?: '–' }} |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
@endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@if(FEATURE_FAVES) |
|
|
|
{{-- Active favourite button | counter --}} |
|
|
|
{{-- Active favourite button | counter --}} |
|
|
|
<div class="btn-group" role="group" aria-label="Favourite"> |
|
|
|
<div class="btn-group" role="group" aria-label="Favourite"> |
|
|
|
@if(user()->favouritesTable($table)) |
|
|
|
@if(user()->favouritesTable($table)) |
|
|
@ -52,20 +59,25 @@ |
|
|
|
{{ $table->favourites_count ?: '–' }} |
|
|
|
{{ $table->favourites_count ?: '–' }} |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
@endif |
|
|
|
|
|
|
|
|
|
|
|
@endif |
|
|
|
@endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@if(FEATURE_TABLE_COMMENTS) |
|
|
|
{{-- Comments button with counter --}} |
|
|
|
{{-- Comments button with counter --}} |
|
|
|
<a href="" class="btn btn-outline-primary py-1 btn-sm" @tooltip(Comments)> |
|
|
|
<a href="" class="btn btn-outline-primary py-1 btn-sm" @tooltip(Comments)> |
|
|
|
@icon(fa-comment, sr:Comments) |
|
|
|
@icon(fa-comment, sr:Comments) |
|
|
|
{{ $table->comments_count ?: '–' }} |
|
|
|
{{ $table->comments_count ?: '–' }} |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
|
|
|
|
@endif |
|
|
|
|
|
|
|
|
|
|
|
{{-- Active proposals button | counter --}} |
|
|
|
{{-- Active proposals button | counter --}} |
|
|
|
<div class="btn-group" role="group" aria-label="Fork"> |
|
|
|
<div class="btn-group" role="group" aria-label="Fork"> |
|
|
|
|
|
|
|
@if(FEATURE_PROPOSALS) |
|
|
|
<a href="" class="btn btn-outline-primary py-1 btn-sm" @tooltip(Change Proposals)> |
|
|
|
<a href="" class="btn btn-outline-primary py-1 btn-sm" @tooltip(Change Proposals)> |
|
|
|
@icon(fa-inbox fa-pr, sr:Change Proposals){{ $table->proposals_count ?: '–' }} |
|
|
|
@icon(fa-inbox fa-pr, sr:Change Proposals){{ $table->proposals_count ?: '–' }} |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
|
|
|
|
@endif |
|
|
|
@auth |
|
|
|
@auth |
|
|
|
@if(user()->ownsTable($table)) |
|
|
|
@if(user()->ownsTable($table)) |
|
|
|
{{-- Table owner logged in --}} |
|
|
|
{{-- Table owner logged in --}} |
|
|
@ -73,11 +85,13 @@ |
|
|
|
@icon(fa-pencil, sr:Draft Change) |
|
|
|
@icon(fa-pencil, sr:Draft Change) |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
@else |
|
|
|
@else |
|
|
|
|
|
|
|
@if(FEATURE_PROPOSALS) |
|
|
|
{{-- Not a table owner --}} |
|
|
|
{{-- Not a table owner --}} |
|
|
|
<a href="{{ $table->draftRoute }}" class="btn btn-outline-primary py-1 btn-sm btn-square" @tooltip(Propose Change)> |
|
|
|
<a href="{{ $table->draftRoute }}" class="btn btn-outline-primary py-1 btn-sm btn-square" @tooltip(Propose Change)> |
|
|
|
@icon(fa-pencil, sr:Propose Change) |
|
|
|
@icon(fa-pencil, sr:Propose Change) |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
@endif |
|
|
|
@endif |
|
|
|
|
|
|
|
@endif |
|
|
|
@endauth |
|
|
|
@endauth |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|