recipes/backend/templates/base_with_header.html

19 lines
No EOL
599 B
HTML

{% extends "base.html" %}
{% block body_container %}
<div class="header-container">
{% include "title.html" %}
{% match user %}
{% when Some with (user) %}
<a class="create-recipe" href="/recipe/new" >Create a new recipe</a>
<span>{{ user.email }} / <a href="/signout" />Sign out</a></span>
{% when None %}
<span><a href="/signin" >Sign in</a> / <a href="/signup">Sign up</a></span>
{% endmatch %}
</div>
<div class="main-container">
{% block main_container %}{% endblock %}
</div>
{% endblock %}