A bunch of fixes

This commit is contained in:
blankhex committed 2026-10-16 11:34:34 +03:00
1 parent 65534ecfd5
commit 2a4e03e611
20 files changed
+146 -160

No files matched your search

+1 -1
View File
@@ -13,7 +13,7 @@
{{template "redirect" .}}
<div class="form-group"><label for="login_username">Username</label><input type="text" class="w-100" id="login_username" name="username"></div>
<div class="form-group"><label for="login_password">Password</label><input type="password" class="w-100" id="login_password" name="password"></div>
<div class="form-group"><label><input type="checkbox" id="remember" name="remember" checked> Remember me</label></div>
<div class="form-group"><label><input type="checkbox" id="remember" name="remember"> Remember me</label></div>
<div class="text-center"><button type="submit">Sign In</button></div>
</form>
{{if .Redirect}}
+2 -2
View File
@@ -19,8 +19,8 @@
<tr>
<td>{{.Token}}</td>
<td>{{.Uses}}</td>
<td>{{.ExpiresAt.Format "2006-01-02 15:04"}}</td>
<td>{{.CreatedAt.Format "2006-01-02 15:04"}}</td>
<td>{{.ExpiresAtLocal}}</td>
<td>{{.CreatedAtLocal}}</td>
<td>
<form method="post" action="/invites/delete">
{{template "csrf" $}}
+1 -2
View File
@@ -12,12 +12,11 @@
<table class="table">
<thead>
<tr><th>Token</th><th>Device</th><th>Address</th><th>Created At</th><th></th></tr>
<tr><th>Device</th><th>Address</th><th>Created At</th><th></th></tr>
</thead>
<tbody>
{{range .Sessions}}
<tr>
<td>{{printf "%.8s" .Token}}...</td>
<td>{{.Device}}</td>
<td>{{.Address}}</td>
<td>{{.CreatedAtLocal}}</td>