what2watch/templates/index.html

26 lines
536 B
HTML

{% extends "base.html" %}
{% block title %}Welcome to Witch Watch, Bish{% endblock %}
{% block content %}
<h1>Welcome to Witch Watch</h1>
{% match user %}
{% when Some with (usr) %}
<p>
Hello, {{ usr.username }}! It's nice to see you.
</p>
</br>
<p>
<form action="/logout" enctype="application/x-www-form-urlencoded" method="post">
<input type="submit" value="sign out?">
</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 %}