-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhome.html
47 lines (40 loc) · 1.08 KB
/
home.html
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
{% extends "bootstrap/base.html" %}
{% import "bootstrap/wtf.html" as wtf %}
{% import "bootstrap/fixes.html" as fixes %}
{% import "bootstrap/utils.html" as util %}
{% block title %}This is an example page{% endblock %}
{% block navbar %}
<nav class="navbar navbar-light bg-light">
<a class="navbar-brand" href="#">4111</a>
<a class="navbar-link" href="/logout">logout</a>
</nav>
{% endblock %}
{% block content %}
<p>Home!</p>
<p>my movies</p>
<table class="table">
<tbody>
{% for movie in movies %}
<tr>
<th scope="row"><a href="/movies/{{ movie.mid }}">{{ movie.name}}</a></th>
</tr>
{% endfor %}
<tr>
<th scope="row"><a href="/search">Add movie</a></th>
</tr>
</tbody>
</table>
<p>my shows</p>
<table class="table">
<tbody>
{% for show in shows %}
<tr>
<th scope="row"><a href="/shows/{{ show.tid }}">{{ show.name}}</a></th>
</tr>
{% endfor %}
<tr>
<th scope="row"><a href="/search">Add show</a></th>
</tr>
</tbody>
</table>
{% endblock %}