aboutsummaryrefslogtreecommitdiff
path: root/web/templates/html/mappings.html
diff options
context:
space:
mode:
authorRaúl Benencia <raul@thousandeyes.com>2018-04-13 16:30:31 -0700
committerRaúl Benencia <raul@thousandeyes.com>2018-05-11 15:02:34 -0700
commit77c172b823b64ebface655681ab0749b9d2f7081 (patch)
tree09c13e626eb95ae1d33e76ed683172eab1ab6c96 /web/templates/html/mappings.html
First public commit
Diffstat (limited to 'web/templates/html/mappings.html')
-rw-r--r--web/templates/html/mappings.html40
1 files changed, 40 insertions, 0 deletions
diff --git a/web/templates/html/mappings.html b/web/templates/html/mappings.html
new file mode 100644
index 0000000..dd7d8a5
--- /dev/null
+++ b/web/templates/html/mappings.html
@@ -0,0 +1,40 @@
+{{ define "mappings" }}
+
+<div class="col-md-12">
+ {{ if .NetworkMaps }}
+ <div class="card card-default">
+ <!-- Default card contents -->
+ <div class="card-header">Network Mappings</div>
+ <table class="table">
+ <tr>
+ <th>Subnet</th>
+ <th>IPXE script to use</th>
+ </tr>
+
+ {{ range .NetworkMaps }}
+ <tr>
+ <td>{{ .Network }}</td>
+ <td>{{ .Script.String }}</td>
+ </tr>
+ {{ end }}
+ </table>
+ </div>
+ <div class="card card-default">
+ <!-- Default card contents -->
+ <div class="card-header">Hostname Mappings</div>
+ <table class="table">
+ <tr>
+ <th>Hostname</th>
+ <th>IPXE script to use</th>
+ </tr>
+ {{ range .HostnameMaps }}
+ <tr>
+ <td><code>/{{ .Hostname.String }}/</code></td>
+ <td>{{ .Script.String }}</td>
+ </tr>
+ {{ end }}
+ </table>
+ </div>
+ {{ end }}
+</div>
+{{ end }}
nihil fit ex nihilo