1
0
Fork 0
friendica_2020-09-1_sharedH.../view/templates/sub/delivery_count.tpl
Josh Soref 0b452bcc63 spelling: overridden
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-03-26 16:14:16 -04:00

21 lines
944 B
Smarty

{{*
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">
&bull;
{{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}}