2023-06-08 22:45:34 +00:00
|
|
|
{% extends "base.html" %}
|
|
|
|
{% import "macros.html" as m %}
|
|
|
|
|
2024-04-12 05:15:34 +00:00
|
|
|
{% block title %}Welcome to What 2 Watch, Buddy{% endblock %}
|
2023-06-08 22:45:34 +00:00
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
|
|
|
|
<h1>Whatcha Watchin?</h1>
|
|
|
|
|
|
|
|
{% match user %}
|
2023-10-22 20:35:41 +00:00
|
|
|
{% when Some with (usr) %}
|
|
|
|
<div>
|
|
|
|
<p>
|
|
|
|
Hello, {{ usr.username }}! It's nice to see you.
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
2023-06-08 22:45:34 +00:00
|
|
|
<p>
|
2024-04-15 04:22:16 +00:00
|
|
|
<form action="/title-search" enctype="application/x-www-form-urlencoded" method="get">
|
2024-04-15 03:00:53 +00:00
|
|
|
<label for="title">Looking for something else to watch?</label>
|
|
|
|
<input type="text" name="title" id="title"></br>
|
2023-10-22 20:35:41 +00:00
|
|
|
<input type="submit" value="Let's go!">
|
|
|
|
</form>
|
2023-06-08 22:45:34 +00:00
|
|
|
</p>
|
2023-10-22 20:35:41 +00:00
|
|
|
|
2023-06-08 22:45:34 +00:00
|
|
|
<p>Here are your things to watch:</p>
|
|
|
|
<div class="watchlist">
|
2024-04-16 05:45:47 +00:00
|
|
|
<table>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Title</th>
|
|
|
|
<th>Link</th>
|
|
|
|
<th>Type</th>
|
|
|
|
<th>Year</th>
|
|
|
|
<th>Watching?</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for watch in watches %}
|
|
|
|
{% include "watchlist-item.html" %}
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2023-06-08 22:45:34 +00:00
|
|
|
</div>
|
|
|
|
{% else %}
|
|
|
|
<p>
|
2023-10-22 20:35:41 +00:00
|
|
|
Heya, why don't you <a href="/login">log in</a> or <a href="/signup">sign up</a>?
|
2023-06-08 22:45:34 +00:00
|
|
|
</p>
|
|
|
|
{% endmatch %}
|
|
|
|
|
|
|
|
{% endblock %}
|