src/JanusHercules/Shared/Presentation/Resources/templates/header/header_twig_component.html.twig line 1

Open in your IDE?
  1. {% block stylesheets %}
  2. <link rel="stylesheet" href="{{ asset('assets/generated/tailwind.css')|cdnifyUri }}">
  3. {% endblock %}
  4. <div {{ attributes }}>
  5. <header>
  6. <nav id="navbar" class="tw-bg-white tw-shadow tw-block">
  7. <div class="tw-flex tw-flex-row tw-justify-between tw-items-center">
  8. {% if this.showJoboffererHeader %}
  9. {% if not app.user %}
  10. {{ include('@janus_hercules.shared.presentation/header/jobofferer_navbar.html.twig', {'digitalEstateUrlPro': this.digitalEstateUrlPro, 'joboffererNavbarItems': this.joboffererNavbarItems, 'solutionLinks': this.solutionsLinks}) }}
  11. {% endif %}
  12. {% else %}
  13. <div class="tw-flex tw-h-16 tw-justify-between tw-w-screen tw-px-1">
  14. <twig:NavSide showJoboffererHeader="{{ this.showJoboffererHeader }}"
  15. digitalEstateUrlPro="{{ this.digitalEstateUrlPro }}"
  16. profileLabel="{{ this.profileLabel }}"
  17. userCanSeeWebsiteNavigationItems="{{ this.userCanSeeWebsiteNavigationItems }}"
  18. direction="left"
  19. view="Desktop"
  20. />
  21. <div class="tw-items-center tw-flex">
  22. {% if this.isLoginFromAdmin %}
  23. <twig:button type="a" variant="filled" size="md" textAlignment="start"
  24. isNewTab="{{ false }}"
  25. href="{{ path('limited_access.log_back_into_admin') }}"
  26. text="Zurück zum Admin"
  27. class="tw-text-black hover:tw-text-black tw-mx-2 tw-font-normal tw-bg-joboo-blue-default hover:tw-bg-joboo-blue-default"/>
  28. {% endif %}
  29. <twig:NavSide showJoboffererHeader="{{ this.showJoboffererHeader }}"
  30. digitalEstateUrlPro="{{ this.digitalEstateUrlPro }}"
  31. profileLabel="{{ this.profileLabel }}"
  32. userCanSeeWebsiteNavigationItems="{{ this.userCanSeeWebsiteNavigationItems }}"
  33. direction="right"
  34. view="Desktop"
  35. />
  36. </div>
  37. </div>
  38. {% endif %}
  39. </div>
  40. </nav>
  41. </header>
  42. </div>
  43. <!--
  44. website_commit_id: {{ website_commit_id }}
  45. {% apply spaceless %}
  46. {% if app.user is defined and app.user is not null and app.user.hasAtLeastOneAdminRole %}
  47. https://bitbucket.org/go-gastro/website/commits/{{ website_commit_id }}
  48. {% endif %}
  49. {% endapply %}
  50. -->