From d0867f068611c8590ddd2207a607063c6251048c Mon Sep 17 00:00:00 2001 From: surtur Date: Mon, 4 Sep 2023 16:17:14 +0200 Subject: [PATCH] tmpl: add text to home page [skip ci] --- templates/home.tmpl | 54 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/templates/home.tmpl b/templates/home.tmpl index b7e0f31..e16e4f7 100644 --- a/templates/home.tmpl +++ b/templates/home.tmpl @@ -12,6 +12,60 @@

Welcome, {{.Name}}!

+ {{if .User}} + {{if .User.IsAdmin}} +
+

+ 🛈 To query + the breach APIs, you need to create a user-level + account. To use it, log into it in another browser + (not just another browser window, as normally that + would share the session details of this user). User and + administrator-level accounts each have distinct + capabilities. Similarly to how it is only possible to + manage users using the administrator-level account, + browsing breach data is only allowed for user-level + accounts + + 🛈 learn more about this project. +

+

+ 🛈 Add a new user + + from here, or + + view a listing of all existing users. +

+

+ 🛈 You can also view the configured API keys + + here. +

+
+ {{else}} +
+

+ 🛈 + Check whether your email account is a part of a breach + + here. +

+

+ 🛈 + Alternatively, + + learn more about this project. +

+
+ {{end}} + {{end}}