Covivo/mobicoop

View on GitHub
api/templates/communication/en/push/notification/carpool_ask_refused.html.twig

Summary

Maintainability
Test Coverage
{% set ad = context.ad %}
{% set recipient = context.user %}
{% set sender = context.sender %}
{% set result = context.result %}
{% set outwardOrigin = context.outwardOrigin %}
{% set outwardDestination = context.outwardDestination %}
{% set returnOrigin = context.returnOrigin %}
{% set returnDestination = context.returnDestination %}

Hello {{context.user.givenName|capitalize}} {{context.user.shortFamilyName|capitalize}}
{% if ad.results[0].frequency == 1 %}
{{sender.givenName|capitalize}} {{sender.shortFamilyName|capitalize}} dit not validate the carpooling trip from {{ outwardOrigin.address.displayLabel[0] }} to {{ outwardDestination.address.displayLabel[0] }}. Find new carpools or post an ad on {{api_env('PUSH_PLATFORM_NAME')}}.
{% else %}
{{sender.givenName|capitalize}} {{sender.shortFamilyName|capitalize}} dit not validate the reccurent carpooling trip from {{ outwardOrigin.address.displayLabel[0] }} to {{ outwardDestination.address.displayLabel[0] }}. Find new carpools or post an ad on {{api_env('PUSH_PLATFORM_NAME')}}.
{% endif %}
See you soon on {{api_env('PUSH_PLATFORM_NAME')}}