aboutsummaryrefslogtreecommitdiffhomepage
path: root/template/html/common/settings_menu.html
diff options
context:
space:
mode:
Diffstat (limited to 'template/html/common/settings_menu.html')
-rw-r--r--template/html/common/settings_menu.html24
1 files changed, 24 insertions, 0 deletions
diff --git a/template/html/common/settings_menu.html b/template/html/common/settings_menu.html
new file mode 100644
index 0000000..07a9f24
--- /dev/null
+++ b/template/html/common/settings_menu.html
@@ -0,0 +1,24 @@
+{{ define "settings_menu" }}
+<ul>
+ <li>
+ <a href="{{ route "settings" }}">{{ t "menu.settings" }}</a>
+ </li>
+ <li>
+ <a href="{{ route "integrations" }}">{{ t "menu.integrations" }}</a>
+ </li>
+ <li>
+ <a href="{{ route "sessions" }}">{{ t "menu.sessions" }}</a>
+ </li>
+ {{ if .user.IsAdmin }}
+ <li>
+ <a href="{{ route "users" }}">{{ t "menu.users" }}</a>
+ </li>
+ <li>
+ <a href="{{ route "createUser" }}">{{ t "menu.add_user" }}</a>
+ </li>
+ {{ end }}
+ <li>
+ <a href="{{ route "about" }}">{{ t "menu.about" }}</a>
+ </li>
+</ul>
+{{ end }} \ No newline at end of file