templates/network/profile/sections/network/profile_section_network_team.html.twig line 1

Open in your IDE?
  1. <section id="team"
  2.     class="p-4 my-8 shadow-xl sm:p-8 xl:p-16"
  3.     style="background-color: {{ profile.color }}">
  4.     {% if app.user and (profile.team|length) > 0 %}
  5.       {% do section_navigation_add({ name: 'team', anchor: 'team' }) %}
  6.       <div class="container">
  7.         <div class=" mb-7">
  8.           <h2 class="text-xl font-medium text-white uppercase mb-7 md:text-xl font-headline">
  9.             {{ 'team'|trans }}
  10.             {% if user.id is defined and profile.id == user.id %}
  11.               <small class="underline lowercase">
  12.                 <a data-turbo='false' target="_top" href="{{ path('profile_admin_team_index') }}">({{ 'edit'|trans }})</a>
  13.               </small>
  14.             {% endif %}
  15.           </h2>
  16.         
  17.         <div class="grid gap-8 lg:grid-cols-2 xl:grid-cols-3" style="display: grid;">
  18.           {% for person in profile.team %}
  19.             <div class="grid swiper-slide">
  20.               {% include 'network/profile/components/profile_team_card.html.twig' with {
  21.                 person: person
  22.               } only %}
  23.             </div>
  24.           {% endfor %}
  25.         </div>
  26.       </div>
  27.       
  28.       {% elseif not app.user %}
  29.       <div class="container">
  30.         <h2 class="text-lg font-medium text-white uppercase mb-7 md:text-xl font-headline">
  31.           {{ 'team'|trans }}
  32.         </h2>
  33.         {% include 'network/profile/components/login_required_hint.html.twig' %}
  34.       </div>
  35.     
  36.     
  37.     {% else %}
  38.         <h2 class="text-xl font-medium text-white uppercase mb-7 md:text-xl font-headline">
  39.             {{ 'team'|trans }}
  40.             {% if user.id is defined and profile.id == user.id %}
  41.               <small class="underline lowercase">
  42.                 <a data-turbo='false' target="_top" href="{{ path('profile_admin_team_index') }}">({{ 'edit'|trans }})</a>
  43.               </small>
  44.             {% endif %}
  45.           </h2>
  46.           <div class="text-white">
  47.       {{ 'no.profile.team.available'|trans }}
  48.       </div>
  49.     {% endif %}
  50.   </section>