what2watch/templates/get_watch_page.html

33 lines
765 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 watch %}
{% when Some with (watch) %}
<div class="watch">
<span class="watchtitle">{{watch.title}}</span> -- {% call m::get_or_default(watch.year(), "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 %}