diff options
Diffstat (limited to 'templates/film/list.html.tera')
-rw-r--r-- | templates/film/list.html.tera | 27 |
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> |