mirror of
https://github.com/friendica/friendica
synced 2024-12-27 19:22:25 +00:00
27 lines
1.5 KiB
Smarty
27 lines
1.5 KiB
Smarty
{{*
|
|
* Copyright (C) 2010-2024, the Friendica project
|
|
* SPDX-FileCopyrightText: 2010-2024 the Friendica project
|
|
*
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*}}
|
|
{{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>
|
|
{{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}}
|