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

Open in your IDE?
  1. <section id="horse-lists" class="p-4 my-8 bg-white shadow-xl sm:p-8 xl:p-16">
  2.   {% if
  3.     app.user
  4.       and (managedHorses is not empty
  5.       or bredHorses is not empty
  6.       or trainedHorses is not empty
  7.         or ownedHorses is not empty) %}
  8.     {% do section_navigation_add({ name: 'horse-lists', anchor: 'horse-lists' }) %}
  9.     <div class="">
  10.       <h2 class="text-lg font-medium uppercase md:text-xl font-headline">
  11.         {{ 'horses-lists'|trans }}
  12.       </h2>
  13.       <div class="gap-1 my-2">
  14.         <p>
  15.           {{ 'horses.list.infotext'|trans }}
  16.           <a class="underline"
  17.             href="{{ app.user ? path('profile_admin_horses_index') : path('auth_login') }}"
  18.             target="_blank">
  19.             {{ 'horses.list.linktext'|trans }}
  20.           </a>
  21.         </p>
  22.       </div>
  23.     </div>
  24.     {% if managedHorses is not empty %}
  25.       {% include 'network/profile/components/horse_list_frame.html.twig' with {
  26.         frameId: 'managed-horses',
  27.         path: path('network_profile_managed_horse_list', { id: profile.id })
  28.       } %}
  29.     {% endif %}
  30.     {% if bredHorses is not empty %}
  31.       {% include 'network/profile/components/horse_list_frame.html.twig' with {
  32.         frameId: 'bred-horses',
  33.         path: path('network_profile_bred_horse_list', { id: profile.id })
  34.       } %}
  35.     {% endif %}
  36.     {% if ownedHorses is not empty %}
  37.       {% include 'network/profile/components/horse_list_frame.html.twig' with {
  38.         frameId: 'owned-horses',
  39.         path: path('network_profile_owned_horse_list', { id: profile.id })
  40.       } %}
  41.     {% endif %}
  42.     {% if trainedHorses is not empty %}
  43.       {% include 'network/profile/components/horse_list_frame.html.twig' with {
  44.         frameId: 'trained-horses',
  45.         path: path('network_profile_trained_horse_list', { id: profile.id })
  46.       } %}
  47.     {% endif %}
  48.   {% elseif not app.user %}
  49.     <h2 class="text-lg font-medium uppercase md:text-xl mb-7 font-headline">
  50.       {{ 'horses-lists'|trans }}
  51.     </h2>
  52.     {% include 'network/profile/components/login_required_hint.html.twig' %}
  53.   {% else %}
  54.     <h2 class="text-lg font-medium uppercase md:text-xl mb-7 font-headline">
  55.       {{ 'horses-lists'|trans }}
  56.     </h2>
  57.     {{ 'no.profile.horses.available'|trans }}
  58.   {% endif %}
  59. </section>