diff --git a/templates/base.html b/templates/base.html index ba52e06..76aa293 100644 --- a/templates/base.html +++ b/templates/base.html @@ -1,18 +1,20 @@ - - {% block title %}{{ title }} - Witch Watch{% endblock %} - {% block head %}{% endblock %} - - - -
- {% block content %}{% endblock %} -
- - + + + + {% block title %}{{ title }} - Witch Watch{% endblock %} + {% block head %}{% endblock %} + + + +
+ {% block content %}{% endblock %} +
+ + diff --git a/templates/header_with_user.html b/templates/header_with_user.html new file mode 100644 index 0000000..38b61dc --- /dev/null +++ b/templates/header_with_user.html @@ -0,0 +1,20 @@ +{% match user %} +{% when Some with (usr) %} + +
+ Hello, {{ usr.username }}! +
+
+ + +
+ +{% else %} + +
+ Heya, why don't you log in or sign up? +
+ +{% endmatch %} + +
diff --git a/templates/login_get.html b/templates/login_get.html index ea7a1a7..40ee3e3 100644 --- a/templates/login_get.html +++ b/templates/login_get.html @@ -2,6 +2,8 @@ {% block title %}Login to Witch Watch, Bish{% endblock %} +{% block header %}{% endblock %} + {% block content %}

diff --git a/templates/logout_get.html b/templates/logout_get.html index 4ed382a..d54ca87 100644 --- a/templates/logout_get.html +++ b/templates/logout_get.html @@ -2,6 +2,8 @@ {% block title %}Logout of Witch Watch, Bish{% endblock %} +{% block header %}{% endblock %} + {% block content %}

diff --git a/templates/logout_post.html b/templates/logout_post.html index 69dffba..2e176bd 100644 --- a/templates/logout_post.html +++ b/templates/logout_post.html @@ -2,6 +2,8 @@ {% block title %}Thanks for Signing Up for Witch Watch, Bish{% endblock %} +{% block header %}{% endblock %} + {% block content %}

Goodbye

diff --git a/templates/signup.html b/templates/signup.html index 61b5b44..e4aeb0f 100644 --- a/templates/signup.html +++ b/templates/signup.html @@ -2,6 +2,8 @@ {% block title %}Sign Up for Witch Watch, Bish{% endblock %} +{% block header %} {% endblock %} + {% block content %}

diff --git a/templates/signup_success.html b/templates/signup_success.html index f8e9efc..6d6bd39 100644 --- a/templates/signup_success.html +++ b/templates/signup_success.html @@ -3,6 +3,7 @@ {% block title %}Thanks for Signing Up for Witch Watch, Bish{% endblock %} {% block content %} +{% block header %}{% endblock %}

You did it!