templates/network/profile/sections/horses/profile_section_horses_events.html.twig line 1

Open in your IDE?
  1. <section class="container grid gap-8 p-4 my-8 text-black bg-white shadow-xl sm:p-8 xl:p-16">
  2.   <div>
  3.     <h2 class="text-lg font-medium uppercase md:text-xl font-headline mb-7">
  4.       {{ 'auction-of-associated-horses'|trans }}
  5.     </h2>
  6.     {% if app.user and auctionEvents is not empty %}
  7.       {% for event in auctionEvents %}
  8.         <div class="text-black">
  9.           {% include 'network/profile/components/profile_horse_auction_tile.html.twig' with {
  10.             auction: event
  11.           } %}
  12.         </div>
  13.       {% endfor %}
  14.     {% elseif not app.user %}
  15.       {% include 'network/profile/components/login_required_hint.html.twig' %}
  16.     {% else %}
  17.       {{ 'no.profile.auction.events.available'|trans }}
  18.     {% endif %}
  19.   </div>
  20. </section>
  21. <section class="container grid gap-8 p-4 my-8 text-black bg-white shadow-xl sm:p-8 xl:p-16">
  22.   <div>
  23.     <h2 class="text-lg font-medium uppercase md:text-xl font-headline mb-7">
  24.       {{ 'raceday-of-associated-horses'|trans }}
  25.     </h2>
  26.     {% if app.user and racedayEvents is not empty %}
  27.       {% for event in racedayEvents %}
  28.         <div class="text-black">
  29.           {% include 'network/profile/components/profile_horse_raceday_tile.html.twig' with {
  30.             raceday: event
  31.           } %}
  32.         </div>
  33.       {% endfor %}
  34.     {% elseif not app.user %}
  35.       {% include 'network/profile/components/login_required_hint.html.twig' %}
  36.     {% else %}
  37.       {{ 'no.profile.raceday.events.available'|trans }}
  38.     {% endif %}
  39.   </div>
  40. </section>