diff --git a/templates/zephyr/accounts_home.html b/templates/zephyr/accounts_home.html index 0815b6706e..c6180e29ab 100644 --- a/templates/zephyr/accounts_home.html +++ b/templates/zephyr/accounts_home.html @@ -1 +1,6 @@ -login | register +{% extends "zephyr/base.html" %} + +{% block nav %} +
  • Log in
  • +
  • Register
  • +{% endblock %} diff --git a/templates/zephyr/base.html b/templates/zephyr/base.html index 6933e280a4..2b9d6ad2ec 100644 --- a/templates/zephyr/base.html +++ b/templates/zephyr/base.html @@ -5,19 +5,43 @@ Zephyr + -{% if not user.is_authenticated %}login | register{% endif %} + -{% if user.is_authenticated %}logout{% endif %} +
    {% block content %} {% endblock %} +
    + diff --git a/templates/zephyr/login.html b/templates/zephyr/login.html index 057a2d4330..2299cfd6c6 100644 --- a/templates/zephyr/login.html +++ b/templates/zephyr/login.html @@ -1,3 +1,7 @@ +{% extends "zephyr/base.html" %} + +{% block content %} + {% if form.errors %}

    Your username and password didn't match. Please try again.

    {% endif %} @@ -15,6 +19,8 @@ - + + +{% endblock %} diff --git a/templates/zephyr/register.html b/templates/zephyr/register.html index 039a17aa18..569aecc934 100644 --- a/templates/zephyr/register.html +++ b/templates/zephyr/register.html @@ -1,3 +1,7 @@ +{% extends "zephyr/base.html" %} + +{% block content %} +
    {% csrf_token %} @@ -10,6 +14,8 @@
    - +
    + +{% endblock %}