summaryrefslogtreecommitdiffstats
path: root/views/layout.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/layout.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/layout.erb')
-rw-r--r--views/layout.erb25
1 files changed, 25 insertions, 0 deletions
diff --git a/views/layout.erb b/views/layout.erb
new file mode 100644
index 0000000..3e798c4
--- /dev/null
+++ b/views/layout.erb
@@ -0,0 +1,25 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <title><%= @title %> — Albumen</title>
+ <link rel="stylesheet" href="/css/style.css">
+</head>
+<body>
+ <header class="site-header">
+ <a href="/browse/" class="site-logo">Albumen</a>
+ <nav class="site-nav">
+ <% if admin? %>
+ <a href="/admin/edit/<%= defined?(@rel) ? @rel : '' %>">Edit Album</a>
+ <a href="/admin/logout">Logout</a>
+ <% else %>
+ <a href="/admin/login" class="nav-admin">Admin</a>
+ <% end %>
+ </nav>
+ </header>
+ <main>
+ <%= yield %>
+ </main>
+</body>
+</html>