tmpl: add text to home page [skip ci]
This commit is contained in:
parent
fcea85e54b
commit
d0867f0686
@ -12,6 +12,60 @@
|
||||
<h1 class="mt-20 text-2xl text-pink-400 font-bold">
|
||||
Welcome, <code>{{.Name}}</code>!<br>
|
||||
</h1>
|
||||
{{if .User}}
|
||||
{{if .User.IsAdmin}}
|
||||
<div class="px-10 mx-16 md:mx-32">
|
||||
<p class="mt-4 px-12 text-sm text-gray-500 dark:text-gray-400">
|
||||
<span class="font-mono text-md">🛈</span> To query
|
||||
the breach APIs, you need to create a <b>user-level</b>
|
||||
account. To use it, log into it in another browser
|
||||
(<em>not</em> 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
|
||||
<a href="https://git.dotya.ml/mirre-mt/masters-thesis/" rel="noopener"
|
||||
target="_blank"
|
||||
class="font-medium text-blue-600 hover:underline dark:text-blue-500">
|
||||
🛈 learn more about this project</a>.
|
||||
</p>
|
||||
<p class="mt-2 text-sm text-gray-500 dark:text-gray-400">
|
||||
<span class="font-mono text-md">🛈</span> Add a new user
|
||||
<a href="/manage/users/new"
|
||||
class="font-medium text-blue-600 hover:underline dark:text-blue-500">
|
||||
from here</a>, or
|
||||
<a href="/manage/users"
|
||||
class="font-medium text-blue-600 hover:underline dark:text-blue-500">
|
||||
view a listing of all existing users</a>.
|
||||
</p>
|
||||
<p class="mt-4 text-sm text-gray-500 dark:text-gray-400">
|
||||
<span class="font-mono text-md">🛈</span> You can also view the configured API keys
|
||||
<a href="/manage/api-keys"
|
||||
class="font-medium text-blue-600 hover:underline dark:text-blue-500">
|
||||
here</a>.
|
||||
</p>
|
||||
</div>
|
||||
{{else}}
|
||||
<div class="px-10 mx-16 md:px-32">
|
||||
<p class="mt-2 text-sm text-gray-500 dark:text-gray-400">
|
||||
<span class="font-mono text-md">🛈</span>
|
||||
Check whether your email account is a part of a breach
|
||||
<a href="/user/hibp-search"
|
||||
class="font-medium text-blue-600 hover:underline dark:text-blue-500">
|
||||
here</a>.
|
||||
</p>
|
||||
<p class="mt-2 text-sm text-gray-500 dark:text-gray-400">
|
||||
<span class="font-mono text-md">🛈</span>
|
||||
Alternatively,
|
||||
<a href="https://git.dotya.ml/mirre-mt/masters-thesis/"
|
||||
class="font-medium text-blue-600 hover:underline dark:text-blue-500">
|
||||
learn more</a> about this project.
|
||||
</p>
|
||||
</div>
|
||||
{{end}}
|
||||
{{end}}
|
||||
<div class="mt-8 md:flex md:items-center md:place-items-center md:justify-between">
|
||||
<form method="POST" class="w-full md:w-5xl" action="/logout">
|
||||
<input type="hidden" name="csrf" value="{{- .CSRF -}}">
|
||||
|
Loading…
Reference in New Issue
Block a user