blob: 4e9401bc4ef45c5f51ac37c9ab84840ea7dee0e9 [file] [log] [blame]
<!DOCTYPE html>
<html lang="en" data-theme="light">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ block "title" . }}{{ end }}</title>
<link rel="stylesheet" href="/stat/pico.2.0.6.min.css">
<link rel="stylesheet" href="/stat/dodo_app.css?v=0.0.8">
</head>
<body class="container">
<nav aria-label="breadcrumb">
<ul>
{{- range $i := .Navigation }}
<li><a href="{{ $i.Address }}">{{- $i.Name -}}</a></li>
{{- end }}
</ul>
</nav>
{{- block "content" . }}
{{- end }}
</body>
</html>
{{ define "resources" }}
{{- if gt (len .Ingress) 0 -}}
<h3>Ingress</h3>
{{- range $i := .Ingress -}}
Host: <a href="{{ $i.Host }}">{{ $i.Host }}</a><br/>
<br/>
{{- end -}}
{{- end -}}
{{- if gt (len .VirtualMachine) 0 -}}
<h3>Virtual Machine</h3>
{{- range $i := .VirtualMachine -}}
Name: {{ $i.Name }}<br/>
User: {{ $i.User }}<br/>
CPU Cores: {{ $i.CPUCores }}<br/>
Memory: {{ $i.Memory }}<br/>
<br/>
{{- end -}}
{{- end -}}
{{- if gt (len .PostgreSQL) 0 -}}
<h3>PostgreSQL</h3>
{{- range $p := .PostgreSQL -}}
Name: {{ $p.Name }}<br/>
Version: {{ $p.Version }}<br/>
Volume: {{ $p.Volume }}<br/>
<br/>
{{- end -}}
{{- end -}}
{{- if gt (len .Volume) 0 -}}
<h3>Volumes</h3>
{{- range $v := .Volume -}}
Name: {{ $v.Name }}<br/>
Size: {{ $v.Size }}<br/>
<br/>
{{- end -}}
{{- end -}}
{{ end }}