about summary refs log tree commit diff
path: root/templates/bots.html
diff options
context:
space:
mode:
authorEmile <git@emile.space>2024-08-16 19:50:26 +0200
committerEmile <git@emile.space>2024-08-16 19:50:26 +0200
commit1a57267a17c2fc17fb6e104846fabc3e363c326c (patch)
tree1e574e3a80622086dc3c81ff9cba65ef7049b1a9 /templates/bots.html
initial commit
Diffstat (limited to 'templates/bots.html')
-rw-r--r--templates/bots.html24
1 files changed, 24 insertions, 0 deletions
diff --git a/templates/bots.html b/templates/bots.html
new file mode 100644
index 0000000..34fa0c2
--- /dev/null
+++ b/templates/bots.html
@@ -0,0 +1,24 @@
+{{ define "bots" }}
+
+{{ template "head" . }}
+<body>
+  {{ template "nav" . }}
+
+  <span id="allbots"></span>
+  <h1><a href="#allbots">All Bots</a></h1>
+
+  <table class="trhover">
+  {{ range $bot := .bots }}
+    <tr>
+      <td>
+        <a href="/bot/{{ $bot.ID }}">{{ $bot.Name }}</a>
+      </td>
+      <td>
+        {{ range $idx, $usr := $bot.Users }}{{if $idx}},{{end}}<a href="/user/{{ $usr.ID }}">{{ $usr.Name }}</a>{{ end }}
+      </td>
+    </tr>
+  {{ end }}
+  </table>
+</body>
+{{ template "footer" . }}
+{{ end }}