friendica/view/templates/sub/delivery_count.tpl
Hypolite Petovan e2d32caa78 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
2019-01-23 00:05:53 -05:00

19 lines
795 B
Smarty

{{*
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 >= -1 && $delivery.queue_count !== '' && $delivery.queue_count !== null}}
<span class="delivery">
&bullet;
{{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}}