cloud/bmaas/bmdb/webug: rename .html to .gohtml

IntelliJ doesn't like overriding the type manually,
so lets just stick to their standard.

Change-Id: Ie533d884b06c62d6da6b8504051737b239fb8489
Reviewed-on: https://review.monogon.dev/c/monogon/+/1645
Reviewed-by: Serge Bazanski <serge@monogon.tech>
Tested-by: Jenkins CI
diff --git a/cloud/bmaas/bmdb/webug/templates/machines.gohtml b/cloud/bmaas/bmdb/webug/templates/machines.gohtml
new file mode 100644
index 0000000..b31f9b6
--- /dev/null
+++ b/cloud/bmaas/bmdb/webug/templates/machines.gohtml
@@ -0,0 +1,48 @@
+{{ template "base.gohtml" .Base }}
+<h2>Machine List</h2>
+<p>
+    Click on a Machine ID to explore it further. Commonly viewed tags are expanded.
+</p>
+<table>
+    <tr>
+        <th>Machine ID</th>
+        <th>Work</th>
+        <th>Backoffs</th>
+        <th>Tags</th>
+    </tr>
+    {{ range .Machines -}}
+    <tr>
+        <td class="mono"><a href="/machine/{{ .ID }}">{{ .ID }}</a></td>
+        <td>
+            {{- range $process, $work := .Work -}}
+            <b><a href="/session/{{ $work.SessionID }}">{{ $process }}</a></b>
+            {{- end -}}
+        </td>
+        <td>
+            {{- range $process, $backoff := .Backoffs -}}
+            <b>{{ $backoff.Process }}</b>(<span class="small">{{ summarizeError .Cause }}</span>)
+            {{- end -}}
+        </td>
+        <td>
+            {{- range $name, $tag := .Tags -}}
+            {{- template "fragment_tag.gohtml" $tag -}}
+            {{- end -}}
+        </td>
+    </tr>
+    {{ end -}}
+</table>
+<table>
+    <tr>
+        {{ range $name, $count := .TagCount -}}
+        <th>{{ $name }}</th>
+        {{ end -}}
+    </tr>
+    <tr>
+        {{ range $name, $count := .TagCount -}}
+        <td>{{ $count }}</td>
+        {{ end -}}
+    </tr>
+</table>
+<p class="small faint mono">
+    {{ .NMachines }} rows, rendered in {{ .RenderTime }}. Query: {{ .Query }}
+</p>
\ No newline at end of file