dagu/internal/frontend/templates/base.gohtml
2025-05-06 14:47:19 +09:00

34 lines
913 B
Plaintext

{{define "base"}}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" href="/assets/favicon.ico" />
<title>{{ navbarTitle }}</title>
<script>
function getConfig() {
return {
apiURL: "{{ apiURL }}",
basePath: "{{ basePath }}",
title: "{{ navbarTitle }}",
navbarColor: "{{ navbarColor }}",
version: "{{ version }}",
tz: "{{ tz }}",
maxDashboardPageLimit: "{{ maxDashboardPageLimit }}",
remoteNodes: "{{ remoteNodes }}",
};
}
</script>
<script
defer="defer"
src="{{ basePath }}/assets/bundle.js?v={{ version }}"
></script>
</head>
<body>
{{template "content" .}}
</body>
</html>
{{ end }}