]> git.mxchange.org Git - friendica.git/commitdiff
replace paper plane for finished transfers
authorVinzenz Vietzke <vinz@vinzv.de>
Sat, 17 Aug 2019 17:24:33 +0000 (19:24 +0200)
committerVinzenz Vietzke <vinz@vinzv.de>
Sat, 17 Aug 2019 17:24:33 +0000 (19:24 +0200)
show check mark to visualize the "finished" status
closing #7527

view/theme/frio/templates/sub/delivery_count.tpl

index 94a0a78802be17731923f1c385aaeb0fc8a31e28..de73dc2f1593676e159c0aec5e59fd5321969e12 100644 (file)
@@ -1,21 +1,21 @@
-{{if $delivery.queue_count >= -1 && $delivery.queue_count !== '' && $delivery.queue_count !== null}}\r
-<span class="delivery">\r
-       &bull;\r
-       {{if $delivery.queue_count == 0}}\r
-               <i class="fa fa-hourglass-o" aria-hidden="true" title="{{$delivery.notifier_pending}}"></i>\r
-               <span class="sr-only">{{$delivery.notifier_pending}}</span>\r
-       {{elseif $delivery.queue_done == 0}}\r
-               <i class="fa fa-hourglass" aria-hidden="true" title="{{$delivery.delivery_pending}} {{$item.delivery.queue_done}}/{{$item.delivery.queue_count}}"></i>\r
-               <span class="sr-only">{{$delivery.delivery_pending}}</span>\r
-       {{elseif $delivery.queue_done / $delivery.queue_count < 0.75}}\r
-               <i class="fa fa-paper-plane-o" aria-hidden="true" title="{{$delivery.delivery_underway}} {{$item.delivery.queue_done}}/{{$item.delivery.queue_count}}"></i>\r
-               <span class="sr-only">{{$delivery.delivery_underway}}</span>\r
-       {{elseif $delivery.queue_done < $delivery.queue_count}}\r
-               <i class="fa fa-paper-plane" aria-hidden="true" title="{{$delivery.delivery_almost}} {{$item.delivery.queue_done}}/{{$item.delivery.queue_count}}"></i>\r
-               <span class="sr-only">{{$delivery.delivery_almost}}</span>\r
-       {{else}}\r
-               <i class="fa fa-paper-plane" aria-hidden="true" title="{{$delivery.delivery_done}} {{$item.delivery.queue_done}}/{{$item.delivery.queue_count}}"></i>\r
-               <span class="sr-only">{{$delivery.delivery_done}}</span>\r
-       {{/if}}\r
-</span>\r
-{{/if}}\r
+{{if $delivery.queue_count >= -1 && $delivery.queue_count !== '' && $delivery.queue_count !== null}}
+<span class="delivery">
+       &bull;
+       {{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>
+       {{elseif $delivery.queue_done < $delivery.queue_count}}
+               <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>
+       {{else}}
+               <i class="fa fa-check" aria-hidden="true" title="{{$delivery.delivery_done}} {{$item.delivery.queue_done}}/{{$item.delivery.queue_count}}"></i>
+               <span class="sr-only">{{$delivery.delivery_done}}</span>
+       {{/if}}
+</span>
+{{/if}}