diff options
| author | Joe Mou <dev@mou.fo> | 2026-09-10 14:57:44 -0400 |
|---|---|---|
| committer | Joe Mou <dev@mou.fo> | 2026-09-10 14:58:18 -0400 |
| commit | 01494e6fa1345a509560e5e19a7f08cb2aac5cc8 (patch) | |
| tree | ee6dc77371eebd8e0c2c0f361c4db38e1178bea4 /cgithub/views | |
| parent | 198f2a07f68a348dc0823b2bde3bec541e06db01 (diff) | |
Render the error page in the shared page shell
error.eta carried its own copy of the HTML shell, so error pages missed the
viewport meta tag, the build-commit footer, and the link to the original
GitHub page. The renderer already passes githubUrl and buildCommit to every
template, so the layout needs nothing new from app.ts.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JZAT3YzYP85DihSvQbDKB6
Diffstat (limited to 'cgithub/views')
| -rw-r--r-- | cgithub/views/error.eta | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/cgithub/views/error.eta b/cgithub/views/error.eta index 784a843..a46411e 100644 --- a/cgithub/views/error.eta +++ b/cgithub/views/error.eta @@ -1,11 +1,3 @@ -<!DOCTYPE html> -<html lang="en"> -<head> - <meta charset="UTF-8"> - <title><%= it.title ?? it.message %></title> - <link rel="stylesheet" href="/static/style.css"> -</head> -<body> - <%= it.message %> -</body> -</html> +<% layout("/layouts/base.eta", { title: it.title ?? it.message }) %> + +<%= it.message %> |
