Move rendering into private templates

Add an explicit template renderer with HTML views and partials for the app, bootstrap, package, and catalog pages. Move shared reporting setup into config/reporting.php and relocate stylesheet assets under css/.
This commit is contained in:
www-data
2026-05-26 12:50:26 +02:00
parent 2f2e8869d6
commit 475765e31f
55 changed files with 2328 additions and 1175 deletions
+61
View File
@@ -0,0 +1,61 @@
<!doctype html>
<html lang="{{language}}">
<head>
<meta charset="utf-8">
<title>{{page_title}}</title>
<link rel="stylesheet" href="/css/styles.css?v={{style_version}}">
</head>
<body class="simple-doc login-page">
<main class="login-layout">
<section class="login-panel">
<h1>{{page_title}}</h1>
{{{error_html}}}
<form method="post" action="/login.php">
<label>
{{email_label}}<br>
<input type="email" name="email" autocomplete="username" required>
</label>
<label>
{{password_label}}<br>
<input type="password" name="password" autocomplete="current-password" required>
</label>
<button type="submit">{{login_label}}</button>
</form>
</section>
<aside class="login-request-panel">
<h2>{{account_title}}</h2>
<p>{{account_text}}</p>
<p><a href="https://racket.discourse.group/">{{account_link}}</a></p>
</aside>
</main>
</body>
</html>
===
{
"translations": {
"en": {
"email": "Email address",
"password": "Password",
"login": "Login",
"account_title": "Want to try it?",
"account_text": "If you would like an account to try the sandbox, please request one from Hans Dijkema through the Racket Discourse pages.",
"account_link": "Go to Racket Discourse"
},
"nl": {
"email": "E-mailadres",
"password": "Wachtwoord",
"login": "Inloggen",
"account_title": "Wil je het eens proberen?",
"account_text": "Als je een account wilt om de sandbox eens uit te proberen, doe dan een verzoek aan Hans Dijkema via de Racket Discourse-pagina's.",
"account_link": "Naar Racket Discourse"
}
}
}