aboutsummaryrefslogtreecommitdiffstats
path: root/templates/film/list.tera
diff options
context:
space:
mode:
Diffstat (limited to 'templates/film/list.tera')
-rw-r--r--templates/film/list.tera26
1 files changed, 26 insertions, 0 deletions
diff --git a/templates/film/list.tera b/templates/film/list.tera
new file mode 100644
index 0000000..e5676b8
--- /dev/null
+++ b/templates/film/list.tera
@@ -0,0 +1,26 @@
+<!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 }})
+{% endfor -%}
+</ul>
+{% endif %}
+</body>
+</html>