2023-06-15 23:19:07 +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-15 23:19:07 +00:00
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
|
|
|
|
<h1>Whatcha Watchin?</h1>
|
|
|
|
|
|
|
|
{% match watch %}
|
|
|
|
|
|
|
|
{% when Some with (watch) %}
|
|
|
|
|
|
|
|
<div class="watch">
|
2024-04-07 21:00:56 +00:00
|
|
|
<span class="watchtitle">{{watch.title}}</span> -- {% call m::get_or_default(watch.release_date, "when??") %}
|
2023-06-15 23:19:07 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
{% else %}
|
|
|
|
|
|
|
|
<div class="no-watch-found">Sorry, maybe you meant to <a href="/search">search for something</a>?</div>
|
|
|
|
|
|
|
|
{% endmatch %}
|
|
|
|
|
|
|
|
|
|
|
|
<p>
|
|
|
|
<form action="/search" enctype="application/x-www-form-urlencoded" method="get">
|
|
|
|
<label for="search">quick search</label>
|
|
|
|
<input type="text" name="search" id="search"></br>
|
|
|
|
<input type="submit" value="Let's go!">
|
|
|
|
</form>
|
|
|
|
</p>
|
|
|
|
|
|
|
|
{% endblock %}
|