mixin main-navigation-right(languageToolbarPresent=false, menuTextPresent=false, userTextPresent=false)
  li.nav-item
    .container
      //-<span class="nav">
      if languageToolbarPresent
        a.col-sm.nav-entry.language-desktop-entry(
          href=`/spremeni-jezik/${determinedLanguage === 'sl' ? 'en' : 'sl'}`
        )
          img(src="/images/globe.svg" alt="")
          span#langtoggle.text-white= determinedLanguage === 'sl' ? 'EN' : 'SL'
      .col-sm.nav-entry.menu-link
        button#dropdownMenuButton1(
          type="button"
          data-bs-toggle="dropdown"
          aria-expanded="false"
        )
          img.threedots.mx-0(src="/images/threedots.svg" alt="")
          if menuTextPresent
            span.text-white.menutxt= t('MENI')
        ul.dropdown-menu(aria-labelledby="dropdownMenuButton1")
          li
            a.dropdown-item(href="/")= t('Iskanje')
          if extractionEnabled
            li
              a.dropdown-item(href="/luscenje")= t('Luščenje')
          if dictionariesEnabled
            li
              a.dropdown-item(href="/slovarji/moji")= t('Urejanje')
          if consultancyEnabled
            li
              a.dropdown-item(href="/svetovanje")= t('Svetovanje')
          if user && (user.hasRole('portal admin') || user.hasRole('dictionaries admin'))
            li
              a.dropdown-item(href="/admin")= t('Administracija')
          li
            a.dropdown-item(href="/pomoc")= t('Pomoč')

      if user
        button#dropdownAccountButton.col-sm.nav-entry.no-border.no-bg.me-2rem(
          type="button"
          data-bs-toggle="dropdown"
          aria-expanded="false"
        )
          img(src="/images/profile-loggedin.svg" alt="")
          // .position-absolute
          //   .green-dot
          if userTextPresent
            span.text-white.signintxt.position-relative.left-2= t('RAČUN')
        ul.dropdown-menu.dropdown-menu-end.py-3.children-pspe-4.children-pt-pb-1.ul-children-hover(
          aria-labelledby="dropdownAccountButton"
        )
          li.pt-0.mt-0.noHoverBGEffect.ps-3
            .ps-0.pb-2.navigation-text-color= user.userName
            .text-header-description-gray.index-font-size= user.email
          li.noHoverBGEffect.pt-0.pb-0.ps-3
            hr.mt-2.mb-2
          li.ps-3
            a.dropdown-item.ps-0.pb-2.navigation-text-color(
              href="/nastavitve-racuna"
            )
              .d-flex.flex-row
                .d-flex.flex-shrink-1.flex-grow-0
                  img.pe-2(src="/images/cog.svg" alt="")
                .d-flex.flex-grow-1
                  span.text-header-description-gray.d-block= t('Nastavitve')
          li.pb-0.mb-0.ps-3
            form(action="/users/logout" method="post")
              button.profile-menu-button.pb-2.pt-1
                .d-flex.flex-row
                  .d-flex.flex-shrink-1.flex-grow-0
                    img.pe-2(src="/images/log-out.svg" alt="")
                  .d-flex.flex-grow-1
                    span.text-header-description-gray.d-block= t('Odjava')
      else
        button#login-static-backdrop-button.col-sm.nav-entry.no-border.no-bg(
          href="#"
          type="button"
          data-bs-toggle="modal"
          data-bs-target="#staticBackdrop"
        )
          img(src="/images/profile.svg" alt="")
          if userTextPresent
            span.text-white.signintxt.ps-2= t('PRIJAVA')
