eclipse/cmd/eclipse-httpd/html/lib/page.html.tmpl

42 lines
1.1 KiB
Cheetah

{{/*
* Copyright (C) 2023-2024 Umorpha Systems
* SPDX-License-Identifier: AGPL-3.0-or-later
*/ -}}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Eclipse CI : {{ template "page-title" . }}</title>
<link rel="stylesheet" type="text/css" href="/style.css">
<script>
function localizeTimes() {
var formatter = new Intl.DateTimeFormat(undefined, {
year: 'numeric',
month: 'numeric',
day: 'numeric',
hour: 'numeric',
minute: 'numeric',
second: 'numeric',
timeZoneName: 'short',
});
for (const el of document.getElementsByTagName('time')) {
el.textContent = formatter.format(new Date(el.dateTime));
}
}
document.addEventListener('DOMContentLoaded', localizeTimes);
</script>
</head>
<body>
<header>
<h1>Eclipse CI : {{ template "page-title" . }}</h1>
</header>
<article>
{{- template "page-content" . }}
</article>
<footer>
Eclipse CI is free software under the GNU AGPL.
<a href="/eclipse.tar">Download the source code.</a>
</footer>
</body>
</html>