aboutsummaryrefslogtreecommitdiffstats
path: root/templates/film/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/film/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/film/list.html.tera')
-rw-r--r--templates/film/list.html.tera27
1 files changed, 27 insertions, 0 deletions
diff --git a/templates/film/list.html.tera b/templates/film/list.html.tera
new file mode 100644
index 0000000..d40b6bf
--- /dev/null
+++ b/templates/film/list.html.tera
@@ -0,0 +1,27 @@
+<!DOCTYPE html>
+<html>
+<head>
+<title>Room list</title>
+</head>
+<body>
+<h1>Films</h1>
+
+<p>
+<a href="/films/new">Add film</a></p>
+
+{% if films | length <= 0%}
+No films defined.
+{% else %}
+<ul>
+{% for r in films -%}
+ <li>
+ {% if r.url -%}<a href="{{ r.url }}">{% endif -%}
+ {{ r.title }}
+ {% if r.url -%}</a>{% endif -%}
+ ({{ r.id }})
+ </li>
+{% endfor -%}
+</ul>
+{% endif %}
+</body>
+</html>