27 lines
No EOL
866 B
HTML
27 lines
No EOL
866 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><a href="/user/edit">
|
|
{% if user.name == "" %}
|
|
{{ user.email }}
|
|
{% else %}
|
|
{{ user.name }}
|
|
{% endif %}
|
|
</a> / <a href="/signout" />Sign out</a></span>
|
|
{% when None %}
|
|
<span>
|
|
<a href="/signin" >Sign in</a>/<a href="/signup">Sign up</a>/<a href="/ask_reset_password">Lost password</a>
|
|
</span>
|
|
{% endmatch %}
|
|
|
|
</div>
|
|
<div class="main-container">
|
|
{% block main_container %}{% endblock %}
|
|
</div>
|
|
{% endblock %} |