init
This commit is contained in:
commit
a0a338067b
16 changed files with 898 additions and 0 deletions
25
templates/index.html
Normal file
25
templates/index.html
Normal file
|
@ -0,0 +1,25 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>File List</title>
|
||||
</head>
|
||||
<body>
|
||||
{{if .IsLoggedIn}}
|
||||
<p>Welcome back!</p>
|
||||
{{else}}
|
||||
<p>Please log in to access more features.</p>
|
||||
{{end}}
|
||||
|
||||
<h2>Files</h2>
|
||||
{{if .Files}}
|
||||
<ul>
|
||||
{{range .Files}}
|
||||
<li>{{.FileName}}</li>
|
||||
{{end}}
|
||||
</ul>
|
||||
{{else}}
|
||||
<p>No files available.</p>
|
||||
{{end}}
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue