summaryrefslogtreecommitdiffstats
path: root/views/admin/login.erb
diff options
context:
space:
mode:
authorKen <ken@jots.org>2026-05-09 04:41:03 +0000
committerKen <ken@jots.org>2026-05-09 04:41:03 +0000
commitc75beda743dfd6af63f512e928d0889d9ead3973 (patch)
treebed91fd4f9d36a905be0b1ef990457a1e37e567b /views/admin/login.erb
Initial commit — Albumen photo album
Ruby/Sinatra self-hosted photo album with directory hierarchy, per-photo captions and visibility, lightbox, slideshow, admin UI, and Let's Encrypt HTTPS via Apache reverse proxy on prouter. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'views/admin/login.erb')
-rw-r--r--views/admin/login.erb14
1 files changed, 14 insertions, 0 deletions
diff --git a/views/admin/login.erb b/views/admin/login.erb
new file mode 100644
index 0000000..16f12d2
--- /dev/null
+++ b/views/admin/login.erb
@@ -0,0 +1,14 @@
+<div class="admin-login">
+ <h1>Admin Login</h1>
+ <% if defined?(@error) && @error %>
+ <p class="form-error"><%= @error %></p>
+ <% end %>
+ <form method="post" action="/admin/login">
+ <input type="hidden" name="return_to" value="<%= ERB::Util.html_escape(params['return_to'].to_s) %>">
+ <label>
+ Password
+ <input type="password" name="password" autofocus autocomplete="current-password">
+ </label>
+ <button type="submit" class="btn">Login</button>
+ </form>
+</div>