Update delivery count display
- Hide display when item is preceding the feature - Wrap the display in its own span - Remove delivery bullet from wall_thread.tpl - [frio] Make delivery icon fainter
This commit is contained in:
parent
1ee1d7ef4e
commit
e2d32caa78
6 changed files with 48 additions and 36 deletions
|
@ -2,12 +2,17 @@
|
|||
Please don't use this template as is, this is a placeholder that needs to be
|
||||
overriden with specific icons to avoid taking too much visual space
|
||||
*}}
|
||||
{{if $delivery.queue_count == 0}}
|
||||
{{$delivery.notifier_pending|escape}}
|
||||
{{elseif $delivery.queue_done == 0}}
|
||||
{{$delivery.delivery_pending|escape}} {{$item.delivery.queue_done}}/{{$item.delivery.queue_count}}
|
||||
{{elseif $delivery.queue_done / $delivery.queue_count < 0.75}}
|
||||
{{$delivery.delivery_underway|escape}} {{$item.delivery.queue_done}}/{{$item.delivery.queue_count}}
|
||||
{{else}}
|
||||
{{$delivery.delivery_almost|escape}} {{$item.delivery.queue_done}}/{{$item.delivery.queue_count}}
|
||||
{{if $delivery.queue_count >= -1 && $delivery.queue_count !== '' && $delivery.queue_count !== null}}
|
||||
<span class="delivery">
|
||||
•
|
||||
{{if $delivery.queue_count == 0}}
|
||||
{{$delivery.notifier_pending}}
|
||||
{{elseif $delivery.queue_done == 0}}
|
||||
{{$delivery.delivery_pending}} {{$item.delivery.queue_done}}/{{$item.delivery.queue_count}}
|
||||
{{elseif $delivery.queue_done / $delivery.queue_count < 0.75}}
|
||||
{{$delivery.delivery_underway}} {{$item.delivery.queue_done}}/{{$item.delivery.queue_count}}
|
||||
{{else}}
|
||||
{{$delivery.delivery_almost}} {{$item.delivery.queue_done}}/{{$item.delivery.queue_count}}
|
||||
{{/if}}
|
||||
</span>
|
||||
{{/if}}
|
||||
|
|
|
@ -2094,6 +2094,7 @@ ul.dropdown-menu li:hover {
|
|||
/* Media Classes */
|
||||
.media .time,
|
||||
.media .shared-time,
|
||||
.media .delivery,
|
||||
.media .location,
|
||||
.media .location a {
|
||||
font-size: 11px;
|
||||
|
|
|
@ -1,13 +1,18 @@
|
|||
{{if $delivery.queue_count == 0}}
|
||||
<i class="fa fa-hourglass-o" aria-hidden="true" title="{{$delivery.notifier_pending|escape}}"></i>
|
||||
<span class="sr-only">{{$delivery.notifier_pending|escape}}</span>
|
||||
{{elseif $delivery.queue_done == 0}}
|
||||
<i class="fa fa-hourglass" aria-hidden="true" title="{{$delivery.delivery_pending|escape}} {{$item.delivery.queue_done}}/{{$item.delivery.queue_count}}"></i>
|
||||
<span class="sr-only">{{$delivery.delivery_pending|escape}}</span>
|
||||
{{elseif $delivery.queue_done / $delivery.queue_count < 0.75}}
|
||||
<i class="fa fa-paper-plane-o" aria-hidden="true" title="{{$delivery.delivery_underway|escape}} {{$item.delivery.queue_done}}/{{$item.delivery.queue_count}}"></i>
|
||||
<span class="sr-only">{{$delivery.delivery_underway|escape}}</span>
|
||||
{{else}}
|
||||
<i class="fa fa-paper-plane" aria-hidden="true" title="{{$delivery.delivery_almost|escape}} {{$item.delivery.queue_done}}/{{$item.delivery.queue_count}}"></i>
|
||||
<span class="sr-only">{{$delivery.delivery_almost|escape}}</span>
|
||||
{{if $delivery.queue_count >= -1 && $delivery.queue_count !== '' && $delivery.queue_count !== null}}
|
||||
<span class="delivery">
|
||||
•
|
||||
{{if $delivery.queue_count == 0}}
|
||||
<i class="fa fa-hourglass-o" aria-hidden="true" title="{{$delivery.notifier_pending}}"></i>
|
||||
<span class="sr-only">{{$delivery.notifier_pending}}</span>
|
||||
{{elseif $delivery.queue_done == 0}}
|
||||
<i class="fa fa-hourglass" aria-hidden="true" title="{{$delivery.delivery_pending}} {{$item.delivery.queue_done}}/{{$item.delivery.queue_count}}"></i>
|
||||
<span class="sr-only">{{$delivery.delivery_pending}}</span>
|
||||
{{elseif $delivery.queue_done / $delivery.queue_count < 0.75}}
|
||||
<i class="fa fa-paper-plane-o" aria-hidden="true" title="{{$delivery.delivery_underway}} {{$item.delivery.queue_done}}/{{$item.delivery.queue_count}}"></i>
|
||||
<span class="sr-only">{{$delivery.delivery_underway}}</span>
|
||||
{{else}}
|
||||
<i class="fa fa-paper-plane" aria-hidden="true" title="{{$delivery.delivery_almost}} {{$item.delivery.queue_done}}/{{$item.delivery.queue_count}}"></i>
|
||||
<span class="sr-only">{{$delivery.delivery_almost}}</span>
|
||||
{{/if}}
|
||||
</span>
|
||||
{{/if}}
|
||||
|
|
|
@ -209,7 +209,6 @@ as the value of $top_child_total (this is done at the end of this file)
|
|||
</span>
|
||||
</a>
|
||||
{{if $item.owner_self}}
|
||||
•
|
||||
{{include file="sub/delivery_count.tpl" delivery=$item.delivery}}
|
||||
{{/if}}
|
||||
</small>
|
||||
|
@ -233,7 +232,6 @@ as the value of $top_child_total (this is done at the end of this file)
|
|||
<a class="time" href="{{$item.plink.orig}}"><span class="wall-item-ago">{{$item.ago}}</span></a>
|
||||
{{if $item.location}} — ({{$item.location nofilter}}){{/if}}
|
||||
{{if $item.owner_self}}
|
||||
•
|
||||
{{include file="sub/delivery_count.tpl" delivery=$item.delivery}}
|
||||
{{/if}}
|
||||
</small>
|
||||
|
@ -253,7 +251,6 @@ as the value of $top_child_total (this is done at the end of this file)
|
|||
<a class="time" href="{{$item.plink.orig}}" title="{{$item.localtime}}" data-toggle="tooltip">{{$item.ago}}</a>
|
||||
{{if $item.location}} — ({{$item.location nofilter}}){{/if}}
|
||||
{{if $item.owner_self}}
|
||||
•
|
||||
{{include file="sub/delivery_count.tpl" delivery=$item.delivery}}
|
||||
{{/if}}
|
||||
</small>
|
||||
|
|
|
@ -1,13 +1,18 @@
|
|||
{{if $delivery.queue_count == 0}}
|
||||
<i class="icon-spinner" aria-hidden="true" title="{{$delivery.notifier_pending|escape}}"></i>
|
||||
<span class="sr-only">{{$delivery.notifier_pending|escape}}</span>
|
||||
{{elseif $delivery.queue_done == 0}}
|
||||
<i class="icon-spinner" aria-hidden="true" title="{{$delivery.delivery_pending|escape}} {{$item.delivery.queue_done}}/{{$item.delivery.queue_count}}"></i>
|
||||
<span class="sr-only">{{$delivery.delivery_pending|escape}}</span>
|
||||
{{elseif $delivery.queue_done / $delivery.queue_count < 0.75}}
|
||||
<i class="icon-plane" aria-hidden="true" title="{{$delivery.delivery_underway|escape}} {{$item.delivery.queue_done}}/{{$item.delivery.queue_count}}"></i>
|
||||
<span class="sr-only">{{$delivery.delivery_underway|escape}}</span>
|
||||
{{else}}
|
||||
<i class="icon-plane" aria-hidden="true" title="{{$delivery.delivery_almost|escape}} {{$item.delivery.queue_done}}/{{$item.delivery.queue_count}}"></i>
|
||||
<span class="sr-only">{{$delivery.delivery_almost|escape}}</span>
|
||||
{{if $delivery.queue_count >= -1 && $delivery.queue_count !== '' && $delivery.queue_count !== null}}
|
||||
<span class="delivery">
|
||||
•
|
||||
{{if $delivery.queue_count == 0}}
|
||||
<i class="icon-spinner" aria-hidden="true" title="{{$delivery.notifier_pending}}"></i>
|
||||
<span class="sr-only">{{$delivery.notifier_pending}}</span>
|
||||
{{elseif $delivery.queue_done == 0}}
|
||||
<i class="icon-spinner" aria-hidden="true" title="{{$delivery.delivery_pending}} {{$item.delivery.queue_done}}/{{$item.delivery.queue_count}}"></i>
|
||||
<span class="sr-only">{{$delivery.delivery_pending}}</span>
|
||||
{{elseif $delivery.queue_done / $delivery.queue_count < 0.75}}
|
||||
<i class="icon-plane" aria-hidden="true" title="{{$delivery.delivery_underway}} {{$item.delivery.queue_done}}/{{$item.delivery.queue_count}}"></i>
|
||||
<span class="sr-only">{{$delivery.delivery_underway}}</span>
|
||||
{{else}}
|
||||
<i class="icon-plane" aria-hidden="true" title="{{$delivery.delivery_almost}} {{$item.delivery.queue_done}}/{{$item.delivery.queue_count}}"></i>
|
||||
<span class="sr-only">{{$delivery.delivery_almost}}</span>
|
||||
{{/if}}
|
||||
</span>
|
||||
{{/if}}
|
||||
|
|
|
@ -57,7 +57,6 @@
|
|||
<span class="wall-item-ago">
|
||||
{{if $item.plink}}<a title="{{$item.plink.title}}" href="{{$item.plink.href}}" class="u-url" style="color: #999"><time class="dt-published" datetime="{{$item.localtime}}">{{$item.created}}</time></a>{{else}} <time class="dt-published" datetime="{{$item.localtime}}">{{$item.created}}</time> {{/if}}
|
||||
{{if $item.owner_self}}
|
||||
•
|
||||
{{include file="sub/delivery_count.tpl" delivery=$item.delivery}}
|
||||
{{/if}}
|
||||
</span>
|
||||
|
|
Loading…
Reference in a new issue