aboutsummaryrefslogtreecommitdiffstats
path: root/templates/room/list.html.tera
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2021-08-24 23:03:01 +0200
committerHarald Eilertsen <haraldei@anduin.net>2021-08-24 23:03:01 +0200
commit94c4261d7733589a5e5616489ed3d3e9562a9e5b (patch)
treececb7ba67387674e70e138047d8d9a74fb605eb2 /templates/room/list.html.tera
parent5c092e52767e62987ef0294cde1ce40905fc5199 (diff)
downloadramaskrik-social-94c4261d7733589a5e5616489ed3d3e9562a9e5b.tar.gz
ramaskrik-social-94c4261d7733589a5e5616489ed3d3e9562a9e5b.tar.bz2
ramaskrik-social-94c4261d7733589a5e5616489ed3d3e9562a9e5b.zip
Upgrade to use Rocket 0.5.0-rc.1
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>