33 lines
773 B
HTML
33 lines
773 B
HTML
{% extends "base.html" %}
|
|
{% import "macros.html" as m %}
|
|
|
|
{% block title %}Welcome to What 2 Watch, Buddy{% endblock %}
|
|
|
|
{% block content %}
|
|
|
|
<h1>Whatcha Watchin?</h1>
|
|
|
|
{% match watch %}
|
|
|
|
{% when Some with (watch) %}
|
|
|
|
<div class="watch">
|
|
<span class="watchtitle">{{watch.title}}</span> -- {% call m::get_or_default(watch.release_date, "when??") %}
|
|
</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 %}
|