invitea/static/templates/index.tmpl

27 lines
779 B
Cheetah

<html>
<head>
<title>Invitea</title>
<link rel="icon" href="/img/invitea-full.png" type="image/png">
<link rel="stylesheet" href="/css/simple.css">
</head>
<body>
<header>
<h1><a href="/"><img src="/img/invitea.png" alt="invitea logo" width="60"/></a> Invitea</h1>
<p>
Welcome to the home page of <a href="https://git.jojodev.com/jolheiser/invitea">Invitea</a>, an invite link generator for <a href="https://gitea.io">Gitea</a>.
</p>
</header>
<main>
{{ if .isAdmin }}
<p>
Hello, {{ .username }}. <a href="./auth/logout">Log Out</a>
</p>
{{ template "admin.tmpl" . }}
{{ else }}
<p>
For non-admins there isn't much to do here. <a href="./auth/login">Log In</a>
</p>
{{ end }}
</main>
</body>
</html>