Files
hnh-map/webapp/templates/index.tmpl
Nikolay Tatarinov 605a31567e Add initial project structure with backend and frontend setup
- Created backend structure with Go, including main application logic and API endpoints.
- Added Docker support for both development and production environments.
- Introduced frontend using Nuxt 3 with Tailwind CSS for styling.
- Included configuration files for Docker and environment variables.
- Established basic documentation for contributing, development, and deployment processes.
- Set up .gitignore and .dockerignore files to manage ignored files in the repository.
2026-02-24 22:27:05 +03:00

39 lines
1.5 KiB
Cheetah

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<style>
</style>
<title>{{.Page.Title}}</title>
</head>
<body>
<div class="container">
<div class="row">
<div class="col s3">
{{if .Session.Auths.Has "map" }}<a class="waves-effect waves-light btn-large" href="/map">Map</a><br>{{end}}
{{if .Session.Auths.Has "admin" }}<a class="waves-effect waves-light btn" href="/admin">Admin portal</a><br>{{end}}
<a class="waves-effect waves-light btn" href="/password">Change Password</a><br>
<a class="waves-effect waves-light btn" href="/logout">Logout</a><br>
</div>
<div class="col s9">
{{if .Session.Auths.Has "upload" }}
<ul class="collection with-header">
<li class="collection-header">Here are your existing upload tokens.</li>
{{range .UploadTokens}}
<li class="collection-item">{{$.Prefix}}/client/{{.}}</li>
{{else}}
<li class="collection-item">You have no tokens, generate one now!</li>
{{end}}
</ul>
<a class="waves-effect waves-light btn" href="/generateToken">Generate Token</a>
{{end}}
</div>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"></script>
</body>
</html>