| 1 |
{{- define "page" }} |
| 2 |
<!DOCTYPE html> |
| 3 |
<html> |
| 4 |
{{- template "header" . }} |
| 5 |
<body> |
| 6 |
{{ if eq .Layout "none" }} |
| 7 |
{{- range .Charts }} {{ template "base" . }} {{- end }} |
| 8 |
{{ end }} |
| 9 |
|
| 10 |
{{ if eq .Layout "center" }} |
| 11 |
<style> .container {display: flex;justify-content: center;align-items: center;} .item {margin: auto;} </style> |
| 12 |
{{- range .Charts }} {{ template "base" . }} {{- end }} |
| 13 |
{{ end }} |
| 14 |
|
| 15 |
{{ if eq .Layout "flex" }} |
| 16 |
<style> .box { justify-content:center; display:flex; flex-wrap:wrap } </style> |
| 17 |
<div class="box"> {{- range .Charts }} {{ template "base" . }} {{- end }} </div> |
| 18 |
{{ end }} |
| 19 |
|
| 20 |
{{ if eq .Layout "full" }} |
| 21 |
<style> .container {height: 100vh;} .item {margin: auto;} </style> |
| 22 |
{{- range .Charts }} {{ template "base" . }} {{- end }} |
| 23 |
{{ end }} |
| 24 |
|
| 25 |
</body> |
| 26 |
</html> |
| 27 |
{{ end }} |