templates/_structure/aside.html.twig line 1

Open in your IDE?
  1. {% set isMember = is_granted('ROLE_MEMBER') %}
  2. <nav class="nav nav-tabs flex-column flex-sm-row" role="tablist">
  3.     <a class="flex-sm-fill text-sm-center rounded-0 border-bottom-0 bg-grey-10 nav-link {% if not isMember %}active {% endif %}px-0" href="#tab-aside-online" data-toggle="tab" role="tab" >Online</a>
  4.     {% if isMember %}
  5.         <a class="flex-sm-fill text-sm-center rounded-0 border-bottom-0 bg-grey-10 nav-link px-0 active" href="#tab-aside-activity" data-toggle="tab" role="tab">
  6.             <span id="js-sidebar-activity-label">{{ is_granted('ROLE_AMATEUR') ? 'Marketing' : 'Aktivitäten' }}</span>
  7.         </a>
  8.         <a class="flex-sm-fill text-sm-center rounded-0 border-bottom-0 bg-grey-10 nav-link px-0" href="#tab-aside-visitors" data-toggle="tab" role="tab">Besucher</a>
  9.     {% endif %}
  10. </nav>
  11. <div class="tab-content" id="tab-content-aside">
  12.     <div class="tab-pane {% if not isMember %}show active{% endif %}" id="tab-aside-online" role="tabpanel">
  13.         <ul class="chat list-unstyled mb-0 sidebar sidebar-full-height">
  14.             {% if not app.user %}
  15.                 {% for htmlItem in femaleOnlineUsersSoftcore(false) %}
  16.                     {{ htmlItem|raw }}
  17.                 {% endfor %}
  18.                 {% for htmlItem in maleOnlineUsersSoftcore(false) %}
  19.                     {{ htmlItem|raw }}
  20.                 {% endfor %}
  21.             {% endif %}
  22.         </ul>
  23.         <nav class="nav nav-tabs nav-tabs-dark flex-column flex-sm-row mb-0">
  24.             {% if not app.user %}
  25.                 <li class="flex-sm-fill text-sm-center rounded-0 border-bottom-0 bg-grey-10 nav-link px-0 active" data-selection="2">Frauen</li>
  26.                 <li class="flex-sm-fill text-sm-center rounded-0 border-bottom-0 bg-grey-10 nav-link px-0" data-selection="1">Männer</li>
  27.             {% else %}
  28.                 {% if 'ROLE_AMATEUR' in app.user.roles %}
  29.                     <li class="flex-sm-fill text-sm-center rounded-0 border-bottom-0 bg-grey-10 nav-link px-0 active" data-selection="1">Männer</li>
  30.                     <li class="flex-sm-fill text-sm-center rounded-0 border-bottom-0 bg-grey-10 nav-link px-0" data-selection="2">Frauen</li>
  31.                 {% else %}
  32.                     <li class="flex-sm-fill text-sm-center rounded-0 border-bottom-0 bg-grey-10 nav-link px-0 active" data-selection="2">Frauen</li>
  33.                     <li class="flex-sm-fill text-sm-center rounded-0 border-bottom-0 bg-grey-10 nav-link px-0" data-selection="1">Männer</li>
  34.                 {% endif %}
  35.             {% endif %}
  36.             <li class="flex-sm-fill text-sm-center rounded-0 border-bottom-0 bg-grey-10 nav-link" data-selection="webcam">Livecams</li>
  37.         </nav>
  38.     </div>
  39.     {% if isMember %}{# Populated by HeaderApp & SidebarHandler class #}
  40.         <div class="tab-pane show active" id="tab-aside-activity" role="tabpanel">
  41.             <ul class="chat list-unstyled sidebar-full-height"></ul>
  42.         </div>
  43.         <div class="tab-pane" id="tab-aside-visitors" role="tabpanel">
  44.             <ul class="chat list-unstyled sidebar-full-height"></ul>
  45.         </div>
  46.     {% endif %}
  47. </div>