Debian Codegraph @

internal/template/templates/common/settings_menu.html

raw
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 <li>
8 <a href="{{ routePath "/integrations" }}">{{ icon "third-party-services" }}{{ t "menu.integrations" }}</a>
9 </li>
10 {{ if apiEnabled }}
11 <li>
12 <a href="{{ routePath "/keys" }}">{{ icon "api" }}{{ t "menu.api_keys" }}</a>
13 </li>
14 {{ end }}
15 <li>
16 <a href="{{ routePath "/sessions" }}">{{ icon "sessions" }}{{ t "menu.sessions" }}</a>
17 </li>
18 {{ if .user.IsAdmin }}
19 <li>
20 <a href="{{ routePath "/users" }}">{{ icon "users" }}{{ t "menu.users" }}</a>
21 </li>
22 {{ end }}
23 <li>
24 <a href="{{ routePath "/about" }}">{{ icon "about" }}{{ t "menu.about" }}</a>
25 </li>
26 </ul>
27 </nav>
28 {{ end }}