<!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="/static/pico.2.0.6.min.css">
    <link rel="stylesheet" href="/static/main.css?v=0.0.11">
</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 }}
	<script src="/static/main.js?v=0.0.10"></script>
</body>
</html>
{{ define "resources" }}
{{- if gt (len .Ingress) 0 -}}
<h3>Ingress</h3>
{{- range $i := .Ingress -}}
{{ $i.Name }}: <a href="{{ $i.Host }}{{ $i.Home }}" target="_blank">{{ $i.Host }}</a><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 .MongoDB) 0 -}}
<h3>MongoDB</h3>
{{- range $m := .MongoDB -}}
Name: {{ $m.Name }}<br/>
Version: {{ $m.Version }}<br/>
Volume: {{ $m.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 -}}
{{- if gt (len .Env) 0 -}}
<h3>Environment Variables</h3>
<ul>
{{- range $v := .Env -}}
<li>{{ $v }}</li>
{{- end -}}
</ul>
{{- end -}}
{{ end }}
