settings_menu.html 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. {{ define "settings_menu" }}
  2. <nav aria-label="{{ t "page.settings.title" }} {{ t "menu.title" }}">
  3. <ul>
  4. <li>
  5. <a href="{{ routePath "/settings" }}">{{ icon "settings" }}{{ t "menu.settings" }}</a>
  6. </li>
  7. {{ if or (not disableLocalAuth) webAuthnEnabled }}
  8. <li>
  9. <a href="{{ routePath "/authentication" }}">{{ icon "authentication" }}{{ t "menu.authentication" }}</a>
  10. </li>
  11. {{ end }}
  12. <li>
  13. <a href="{{ routePath "/integrations" }}">{{ icon "third-party-services" }}{{ t "menu.integrations" }}</a>
  14. </li>
  15. {{ if apiEnabled }}
  16. <li>
  17. <a href="{{ routePath "/keys" }}">{{ icon "api" }}{{ t "menu.api_keys" }}</a>
  18. </li>
  19. {{ end }}
  20. <li>
  21. <a href="{{ routePath "/sessions" }}">{{ icon "sessions" }}{{ t "menu.sessions" }}</a>
  22. </li>
  23. {{ if .user.IsAdmin }}
  24. <li>
  25. <a href="{{ routePath "/users" }}">{{ icon "users" }}{{ t "menu.users" }}</a>
  26. </li>
  27. {{ end }}
  28. <li>
  29. <a href="{{ routePath "/about" }}">{{ icon "about" }}{{ t "menu.about" }}</a>
  30. </li>
  31. </ul>
  32. </nav>
  33. {{ end }}