mirror of
https://github.com/friendica/friendica
synced 2024-11-18 02:23:40 +00:00
26 lines
1.1 KiB
Smarty
26 lines
1.1 KiB
Smarty
{{*
|
|
* Copyright (C) 2010-2024, the Friendica project
|
|
* SPDX-FileCopyrightText: 2010-2024 the Friendica project
|
|
*
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*}}
|
|
{{*
|
|
Please don't use this template as is, this is a placeholder that needs to be
|
|
overridden with specific icons to avoid taking too much visual space
|
|
*}}
|
|
{{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}}
|
|
{{elseif $delivery.queue_done < $delivery.queue_count}}
|
|
{{$delivery.delivery_almost}} {{$item.delivery.queue_done}}/{{$item.delivery.queue_count}}
|
|
{{else}}
|
|
{{$delivery.delivery_done}} {{$item.delivery.queue_done}}/{{$item.delivery.queue_count}}
|
|
{{/if}}
|
|
</span>
|
|
{{/if}}
|