PHRAS-2978 #comment update feedback expiration date #time 6h

This commit is contained in:
Harrys Ravalomanana
2020-03-17 15:34:24 +04:00
parent 9c87ba5504
commit fbc4e01ef3
4 changed files with 74 additions and 10 deletions

View File

@@ -11,7 +11,11 @@
<span class="expiredDate">
{% if basket.getValidation() %}
{% set dateExpired = app['date-formatter'].getPrettyString(basket.getValidation().getExpires()) %}
{{ 'workzone:feedback:expiration' | trans }} : {{ dateExpired }}
{% if date(dateExpired) < date() %}
<span>{{ 'workzone:feedback:expiration-closed' | trans }} :</span>
{% else %}
<span>{{ 'workzone:feedback:expiration-open' | trans }} :</span>
{% endif %} {{ dateExpired }}
{% endif %}
</span>
<div style="margin:5px 0;max-height:160px;overflow:hidden;text-overflow:ellipsis;">