aboutsummaryrefslogtreecommitdiffstats
path: root/templates/room/list.html.tera
diff options
context:
space:
mode:
Diffstat (limited to 'templates/room/list.html.tera')
-rw-r--r--templates/room/list.html.tera22
1 files changed, 22 insertions, 0 deletions
diff --git a/templates/room/list.html.tera b/templates/room/list.html.tera
new file mode 100644
index 0000000..977edb1
--- /dev/null
+++ b/templates/room/list.html.tera
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<html>
+<head>
+<title>Room list</title>
+</head>
+<body>
+<h1>Rooms</h1>
+
+<p>
+<a href="/rooms/new">Add room</a></p>
+
+{% if rooms | length <= 0%}
+No rooms defined.
+{% else %}
+<ul>
+{% for r in rooms -%}
+ <li>{{ r.name }} ({{ r.id }})</li>
+{% endfor -%}
+</ul>
+{% endif %}
+</body>
+</html>