# HG changeset patch # User Brian Neal # Date 1485307349 21600 # Node ID b84ce2d7e93d8595fe7ea316b14a56876f353ecd # Parent 621ccf7c20eb80cd1c9e2b1abe35394893e5faf5 New template for displaying django messages. New common template for rendering django messages in the new V3 Foundation style. diff -r 621ccf7c20eb -r b84ce2d7e93d sg101/templates/bandmap/add.html --- a/sg101/templates/bandmap/add.html Mon Jan 23 20:18:34 2017 -0600 +++ b/sg101/templates/bandmap/add.html Tue Jan 24 19:22:29 2017 -0600 @@ -10,15 +10,7 @@

Add Band to Map

-{% if messages %} -
- -
-{% endif %} +{% include 'core/message_list.html' %}

To add a band to our map, please fill out the form, below. The information will diff -r 621ccf7c20eb -r b84ce2d7e93d sg101/templates/bio/view_profile.html --- a/sg101/templates/bio/view_profile.html Mon Jan 23 20:18:34 2017 -0600 +++ b/sg101/templates/bio/view_profile.html Tue Jan 24 19:22:29 2017 -0600 @@ -8,13 +8,7 @@ {% block title %}User Profile for {{ subject.username }}{% endblock %} {% block content %}

User Profile for {{ subject.username }}

-{% if messages %} - -{% endif %} +{% include 'core/message_list.html' %}

{% avatar subject 0 %}

diff -r 621ccf7c20eb -r b84ce2d7e93d sg101/templates/core/message_list.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sg101/templates/core/message_list.html Tue Jan 24 19:22:29 2017 -0600 @@ -0,0 +1,7 @@ +{% if messages %} + {% for message in messages %} +
+ {{ message }} +
+ {% endfor %} +{% endif %} diff -r 621ccf7c20eb -r b84ce2d7e93d sg101/templates/messages/messages_base.html --- a/sg101/templates/messages/messages_base.html Mon Jan 23 20:18:34 2017 -0600 +++ b/sg101/templates/messages/messages_base.html Tue Jan 24 19:22:29 2017 -0600 @@ -4,11 +4,7 @@ {% block content %}

Your Private Messages

-{% for message in messages %} -
- {{ message }} -
-{% endfor %} +{% include 'core/message_list.html' %}