User profile edit page
This commit is contained in:
parent
38c286e860
commit
4248d11aa9
15 changed files with 450 additions and 175 deletions
|
|
@ -7,7 +7,13 @@
|
|||
{% match user %}
|
||||
{% when Some with (user) %}
|
||||
<a class="create-recipe" href="/recipe/new" >Create a new recipe</a>
|
||||
<span><a href="/user/edit">{{ user.email }}</a> / <a href="/signout" />Sign out</a></span>
|
||||
<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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue