what2watch/templates/get_watch_page.html

34 lines
765 B
HTML
Raw Normal View History

2023-06-15 23:19:07 +00:00
{% 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??") %}
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 %}