templates/pages/_includes/details/_other-departures-pricing-fragment.html.twig line 21

Open in your IDE?
  1. {% set allDepartures = get_pricing_departures(currentCruise)|default([]) %}
  2. {% set subTypes = getCabinSubTypesForPricing(currentCruise, allDepartures)|default([]) %}
  3. {% set subtypeCabinTypeMap = getCabinSubTypesMap(currentCruise) %}
  4. {% if subTypes is empty or allDepartures is empty %}
  5. <div class="other-departures-pricing-empty text-sm-md color-grey-text" data-pricing-empty>
  6. {{ 'details.cabin_choice.pricing_unavailable'|trans|default('Aucun tarif disponible pour le moment.') }}
  7. </div>
  8. {% elseif view == 'detailed' %}
  9. {% include 'pages/_includes/details/_other-departures-detailed.html.twig' with {
  10. allDepartures: allDepartures,
  11. currentCruise: currentCruise,
  12. subtypeCabinTypeMap: subtypeCabinTypeMap,
  13. } only %}
  14. {% else %}
  15. {% include 'pages/_includes/details/_other-departures-table.html.twig' with {
  16. allDepartures: allDepartures,
  17. currentCruise: currentCruise,
  18. subTypes: subTypes,
  19. subtypeCabinTypeMap: subtypeCabinTypeMap,
  20. bestUpComingPrice: bestUpComingPrice,
  21. } only %}
  22. {% endif %}