2023-06-08 22:45:34 +00:00
|
|
|
{% extends "base.html" %}
|
|
|
|
{% import "macros.html" as m %}
|
|
|
|
|
2023-07-09 04:26:28 +00:00
|
|
|
{% block title %}Welcome to What 2 Watch, Bish{% 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>
|
2023-10-22 20:35:41 +00:00
|
|
|
<form action="/search" enctype="application/x-www-form-urlencoded" method="get">
|
|
|
|
<label for="search">Looking for something else to watch?</label>
|
|
|
|
<input type="text" name="search" id="search"></br>
|
|
|
|
<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">
|
|
|
|
<ul>
|
|
|
|
{% for watch in watches %}
|
2024-04-07 21:00:56 +00:00
|
|
|
<li><span class="watchtitle">{{watch.title}}</span> -- {% call m::get_or_default(watch.release_date, "when??")
|
|
|
|
%}
|
2023-10-22 20:35:41 +00:00
|
|
|
</li>
|
2023-06-08 22:45:34 +00:00
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
</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 %}
|