aboutsummaryrefslogtreecommitdiffstats
path: root/templates/film/list.html.tera
blob: d40b6bf3b7e7a996fc6330846e857a710e9584dd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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>