commented some buttons and displays for features not yet implemented

This commit is contained in:
2018-07-29 17:05:51 +02:00
parent f1529b3b8e
commit 449a1c4d26
9 changed files with 57 additions and 16 deletions
@@ -22,19 +22,19 @@
!!}<b>{{ $table->title }}</b>
</span>{{--
--}}<div class="d-block col-5 small text-right">{{--
--}}<span title="Visits" class="d-inline-block" style="min-width: 60px;">
--}}<span title="Visits" class="d-inline-block pl-2" style="min-width: 50px;">
{{ $table->visits }}@icon(fa-eye fa-pl, ~Visits~~)
</span>{{--
--}}<span title="Forks" class="d-inline-block {{$forks==0?'hidden':''}}" style="min-width: 60px;">
--}}{{--<span title="Forks" class="d-inline-block pl-2 {{$forks==0?'hidden':''}}" style="min-width: 50px;">
{{ $forks }}@icon(fa-code-fork fa-pl, ~Forks~~)
</span>{{--
--}}<span title="Favourites" class="d-inline-block {{$faves==0?'hidden':''}}" style="min-width: 60px;">
</span>--}}{{--
--}}{{--<span title="Favourites" class="d-inline-block pl-2 {{$faves==0?'hidden':''}}" style="min-width: 50px;">
{{ $faves }}@icon(fa-star fa-pl, ~Favourites~~)
</span>{{--
--}}<span title="Revisions" class="d-inline-block" style="min-width: 60px;">
</span>--}}{{--
--}}{{--<span title="Revisions" class="d-inline-block pl-2" style="min-width: 50px;">
{{ $revs }}@icon(fa-history fa-pl, ~Revisions~~)
</span>{{--
--}}<span title="Rows" class="d-inline-block" style="min-width: 60px;">
</span>--}}{{--
--}}<span title="Rows" class="d-inline-block pl-2" style="min-width: 50px;">
{{ $rows }}@icon(fa-th-list fa-pl, ~Rows)
</span>{{--
--}}
@@ -46,7 +46,7 @@
@sr(Description:~){{ ellipsis($table->description, 215) }}
</div>{{--
--}}<div class="d-inline-block col-4 text-right text-muted">
Last change {{ $table->updated_at->diffForHumans() }}@icon(fa-history fa-pl, sr:Owner)
Last change {{ $table->updated_at->diffForHumans() }}
</div>
</div>
</a>
@@ -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 ?: '' }}&nbsp;
@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 ?: '' }}&nbsp;
@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 ?: '' }}&nbsp;
@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>
@@ -31,13 +31,14 @@
<table>
<tbody>
<tr>
{{-- Commented because the link is already top left --}}
{{--<tr>
<th class="text-right pr-2">Author</th>
<td>
{{ $table->owner->title }}
(<a href="{{route('profile.view', $table->owner->name)}}">{{ $table->owner->handle }}</a>)
</td>
</tr>
</tr>--}}
<tr>
<th class="text-right pr-2">License</th>