aboutsummaryrefslogtreecommitdiffhomepage
path: root/template/html/common/settings_menu.html
diff options
context:
space:
mode:
authorGravatar Frédéric Guillot <fred@miniflux.net>2019-11-17 17:26:47 -0800
committerGravatar Frédéric Guillot <fred@miniflux.net>2019-11-17 17:40:24 -0800
commit789ad8257a84dfaa973ffa5e547cd419d933253d (patch)
tree1a97a4344a3f6ca36a7e811a86a0e4ec660fd551 /template/html/common/settings_menu.html
parent63a549f0e3d552075e927b2e43a4003fcf59cbf2 (diff)
Make sure settings menu is consistent
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