2023-06-13 22:56:15 +00:00
|
|
|
{% if self.has_optional_user() %}
|
2023-06-13 19:34:54 +00:00
|
|
|
|
|
|
|
{% match user %}
|
|
|
|
{% when Some with (usr) %}
|
|
|
|
<div class="header_logged_in">
|
|
|
|
Hello, {{ usr.username }}!
|
|
|
|
</div>
|
2023-09-22 23:51:48 +00:00
|
|
|
<div>
|
|
|
|
<button class="warning">
|
|
|
|
<input type="submit" value="sign out?">
|
|
|
|
</form>
|
|
|
|
</button>
|
2023-06-13 19:34:54 +00:00
|
|
|
</div>
|
|
|
|
{% else %}
|
|
|
|
<div class="header_logged_out">
|
|
|
|
Heya, why don't you <a href="/login">log in</a> or <a href="/signup">sign up</a>?
|
|
|
|
</div>
|
|
|
|
{% endmatch %}
|
|
|
|
|
|
|
|
{% else %}
|
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
|
2023-09-22 23:51:48 +00:00
|
|
|
<hr />
|