diff --git a/.gitignore b/.gitignore index 199290d..698e8b3 100644 --- a/.gitignore +++ b/.gitignore @@ -11,6 +11,8 @@ __pycache__/ # C extensions *.so +venv/ + # Distribution / packaging .Python build/ diff --git a/allauth_ui/templates/allauth/layouts/base.html b/allauth_ui/templates/allauth/layouts/base.html index 63e04a8..7ee2869 100644 --- a/allauth_ui/templates/allauth/layouts/base.html +++ b/allauth_ui/templates/allauth/layouts/base.html @@ -4,64 +4,62 @@ {% load allauth_ui %} - - - - - {% block head_title %} - {% endblock head_title %} - - {% block extra_head %} - - {% endblock extra_head %} - - - {% block body %} - {% if messages %} - {% for message in messages %} - - {% endfor %} - {% endif %} - {% block content %} - {% endblock content %} - - {% endblock body %} - {% block extra_body %} - {% endblock extra_body %} - - + + + + + + {% block head_title %} + {% endblock head_title %} + + {% block extra_head %} + + {% endblock extra_head %} + + + + {% block body %} + + {% include 'helpers/messages.html' %} + + {% block content %} + {% endblock content %} + + {% endblock body %} + {% block extra_body %} + {% endblock extra_body %} + + + \ No newline at end of file diff --git a/allauth_ui/templates/helpers/messages.html b/allauth_ui/templates/helpers/messages.html new file mode 100644 index 0000000..9918f1b --- /dev/null +++ b/allauth_ui/templates/helpers/messages.html @@ -0,0 +1,17 @@ +{% if messages %} + +{% endif %} \ No newline at end of file diff --git a/allauth_ui/templates/helpers/messages/error.html b/allauth_ui/templates/helpers/messages/error.html new file mode 100644 index 0000000..aa2b22d --- /dev/null +++ b/allauth_ui/templates/helpers/messages/error.html @@ -0,0 +1,3 @@ +

+ {{ message }} +

\ No newline at end of file diff --git a/allauth_ui/templates/helpers/messages/info.html b/allauth_ui/templates/helpers/messages/info.html new file mode 100644 index 0000000..ed51aed --- /dev/null +++ b/allauth_ui/templates/helpers/messages/info.html @@ -0,0 +1,3 @@ +

+ {{ message }} +

diff --git a/allauth_ui/templates/helpers/messages/success.html b/allauth_ui/templates/helpers/messages/success.html new file mode 100644 index 0000000..f78d810 --- /dev/null +++ b/allauth_ui/templates/helpers/messages/success.html @@ -0,0 +1,3 @@ +

+ {{ message }} +

diff --git a/allauth_ui/templates/helpers/messages/warning.html b/allauth_ui/templates/helpers/messages/warning.html new file mode 100644 index 0000000..ba161d8 --- /dev/null +++ b/allauth_ui/templates/helpers/messages/warning.html @@ -0,0 +1,3 @@ +

+ {{ message }} +