forked from unprofession-al/solaris
-
Notifications
You must be signed in to change notification settings - Fork 0
/
template.html
58 lines (58 loc) · 1.28 KB
/
template.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Execution Plan</title>
<style type="text/css">
.manual {
padding-left: 40px;
border-left: solid gray 3px;
}
pre {
padding: 5px;
background-color: #777;
color: white;
overflow-x: auto;
white-space: pre-wrap;
white-space: -moz-pre-wrap;
white-space: -pre-wrap;
white-space: -o-pre-wrap;
word-wrap: break-word;
}
th, td {
border-bottom: 1px solid #ddd;
padding: 15px;
text-align: left;
}
.container {
max-width: 800px;
width: 90%;
margin: 0 auto;
}
</style>
</head>
<body>
<div class="container">
{{range $tier, $workspaces := .}}
<h1>({{$tier}}) Tier {{ $tier }}</h1>
{{range $i, $workspace := $workspaces}}
<h2>({{$tier}}.{{$i}}) Workspace <code>{{$workspace.Root}}</code></h2>
{{if $workspace.PreManualRendered}}
<h3>Manual Pre-Work</h3>
<div class="manual">
{{$workspace.PreManualRendered}}
</div>
{{end}}
<h3>Terraform</h3>
<pre><code>
(cd {{ $workspace.Root }} && .\init.ps1 <stage> && terraform apply)
</code></pre>
{{if $workspace.PostManualRendered}}
<h3>Manual Post-Work</h3>
<div class="manual">
{{$workspace.PostManualRendered}}
</div>
{{end}}{{end}}{{end}}
</div>
</body>
</html>