templates/network/auction/sections/auction_section_countdown.html.twig line 1

Open in your IDE?
  1. {% set now = 'now'|carbon %}
  2. {% set liveLabel = 'live'|trans %}
  3. {% if auction.platform == 'auction.platform.online' %}
  4.   {% set liveLabel = 'online'|trans %}
  5. {% endif %}
  6. {% if auction.end > now %}
  7.   <section class="container"
  8.     data-controller="live-badge"
  9.     data-live-badge-start-value="{{ auction.start.toISOString }}"
  10.     data-live-badge-end-value="{{ auction.end.toISOString }}">
  11.     <span data-live-badge-target="badge" class="block w-full px-4 text-center bg-danger-600">
  12.       <span class="text-xs font-bold text-white uppercase">{{ liveLabel }}</span>
  13.     </span>
  14.     <div class="p-6" style="background-color: {{ auction.auctionhouse.color }}">
  15.       <h2 class="text-lg font-medium text-white uppercase md:text-xl font-headline mb-7">
  16.         {% if auction.start > now %}
  17.           {{ 'auction-starts-in'|trans }}
  18.         {% else %}
  19.           {{ 'auction-ends-in'|trans }}
  20.         {% endif %}
  21.       </h2>
  22.       {% include 'auction/auction_countdown.html.twig' with { auction: auction } only %}
  23.     </div>
  24.   </section>
  25. {% endif %}