what2watch/templates/my_watches_page.html

53 lines
1.1 KiB
HTML
Raw Normal View History

{% 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 %}
{% 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>
<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>
</p>
2023-10-22 20:35:41 +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>
</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>?
</p>
{% endmatch %}
{% endblock %}