src/ApplicationBundle/Modules/HoneybeeWeb/Resources/views/website/account_navigation.html.twig line 1

Open in your IDE?
  1. {# Match the existing central login redirect state; these links do not grant access. #}
  2. {% set website_signed_in = app.session and (app.session.get('userEmail') or app.session.get('userId')) %}
  3. {% if website_signed_in %}
  4.     <a class="hbp-companies-link" href="{{ path('central_landing') }}">My companies</a>
  5.     <details class="hbp-account">
  6.         {% set account_name = app.session.get('userName')|default('Account', true)|trim %}
  7.         <summary title="{{ account_name }}" aria-label="{{ account_name }} account menu"><span class="hbp-account-label"><span class="hbp-account-full" aria-hidden="true">{{ account_name }}</span><span class="hbp-account-short" aria-hidden="true">{{ account_name|split(' ')|last }}</span></span><span class="hbp-account-chevron" aria-hidden="true"></span></summary>
  8.         <div>
  9.             <a href="{{ path('honeybee_tool', {'slug':'rooftop-estimate'}) }}">Public Solar Studio</a>
  10.             {% if app.session.get('userType') == 8 %}<a href="{{ path('hb360_my_estimate') }}">My Solar Estimates</a>{% endif %}
  11.             <a href="{{ path('honeybee_my_freelancer_profile') }}">Profile</a>
  12.             <a href="{{ path('ticket_list') }}">My tickets</a>
  13.             {% if app.session.get('buddybeeAdminLevel', 0) >= 1 or app.session.has('actualUserIsAdmin') %}
  14.                 <a href="{{ path('central_landing') }}#account-switch-user">Switch user</a>
  15.             {% endif %}
  16.             {% if app.session.get('buddybeeAdminLevel', 0) >= 1 %}
  17.                 <a href="{{ path('super_admin_command_center') }}">Super Admin</a>
  18.                 <a href="{{ path('datev_home') }}">Datev Control</a>
  19.             {% endif %}
  20.             {% if app.session.get('buddybeeAdminLevel', 0) > 1 %}
  21.                 <a href="{{ path('admin_demo_pending_list') }}">Demo requests</a>
  22.                 <a href="{{ path('admin_demo_all_list') }}">All bookings</a>
  23.             {% endif %}
  24.             <a href="{{ path('user_logout') }}">Sign out</a>
  25.         </div>
  26.     </details>
  27. {% else %}
  28.     <a class="hbp-signin-link" href="{{ path('user_login') }}">Sign in</a>
  29. {% endif %}