diff options
Diffstat (limited to 'templates/index.html')
-rw-r--r-- | templates/index.html | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..218ffe2 --- /dev/null +++ b/templates/index.html @@ -0,0 +1,46 @@ +{{ define "content" }} +<div class="column"> +<h2>SSO Password Manager</h2> +{{with .User}} + <p> + Hello {{.DisplayName}},<br> + Welcome to the single sign on password manager site. + </p> + <h3>Your usernames</h3> + <dl class="flex-container"> + <dt>SSO:</dt> + <dd>{{ .UserName }}</dd> + <dt>eduroam:</dt> + <dd>{{ .UserName }}/ppp@NORDU.NET</dd> + </dl> + + <h3>Available actions</h3> + <ul class="unstyled"> + <li> + <a href="sso"><span class="item-marker">›</span> Change single sign on (SSO) password</a> + </li> + {{ if .Staff }} + <li> + <a href="tacacs"><span class="item-marker">›</span> Change TACACS password</a> + </li> + {{ end }} + {{ if .Active }} + <li> + <a href="eduroam"><span class="item-marker">›</span> Change eduroam password</a> + </li> + {{ end }} + {{ if .Staff }} + <li> + <a href="pubkeys"><span class="item-marker">›</span> Update your public SSH keys</a> + </li> + <li> + <a href="ideviceconf" rel="external"><span class="item-marker">›</span> Configure eduroam on your iDevice</a> + </li> + {{ end }} + </ul> + <p> + <a href="/Shibboleth.sso/Logout">Log out</a> + </p> +{{ end }} +</div> +{{ end }} |