38 lines
973 B
HTML
38 lines
973 B
HTML
|
{% extends "base.html" %}
|
||
|
{% import "macros.html" as m %}
|
||
|
|
||
|
{% block title %}Welcome to Witch Watch, Bish{% endblock %}
|
||
|
|
||
|
{% block content %}
|
||
|
|
||
|
<h1>Whatcha Watchin?</h1>
|
||
|
|
||
|
{% match user %}
|
||
|
{% when Some with (usr) %}
|
||
|
<p>
|
||
|
Hello, {{ usr.username }}! It's nice to see you.
|
||
|
</p>
|
||
|
</br>
|
||
|
<p>Here are your things to watch:</p>
|
||
|
<div class="watchlist">
|
||
|
<ul>
|
||
|
{% for watch in watches %}
|
||
|
<li><span class="watchtitle">{{watch.title}}</span> -- {% call m::get_or_default(watch.release_date, "when??") %}: </li>
|
||
|
{% endfor %}
|
||
|
</ul>
|
||
|
</div>
|
||
|
<p>
|
||
|
<form action="/search" enctype="application/x-www-form-urlencoded" method="post">
|
||
|
<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>
|
||
|
</p>
|
||
|
{% else %}
|
||
|
<p>
|
||
|
Heya, why don't you <a href="/login">log in</a> or <a href="/signup">sign up</a>?
|
||
|
</p>
|
||
|
{% endmatch %}
|
||
|
|
||
|
{% endblock %}
|