about summary refs log tree commit diff
path: root/templates/bots.html
diff options
context:
space:
mode:
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 }}