Skip to content

Commit

Permalink
fix: prevent appearance of duplicate messages (resolves #99) (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
greatislander authored Jun 30, 2020
1 parent c15a253 commit f031b21
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 7 deletions.
1 change: 1 addition & 0 deletions maps/templates/maps/account_settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<p><a class="link--breadcrumb" href="{% url 'index' %}">{% trans "Home" %}</a></p>
<h1>{% trans 'Account settings' %}</h1>
</div>
{% include 'maps/partials/messages.html' %}
<div class="stack">
<ul class="link-list">
<li class="link-list__item"><a href="{% url 'account_email' %}">{% trans 'Manage email addresses' %}</a></li>
Expand Down
1 change: 1 addition & 0 deletions maps/templates/maps/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<h1><span class="pc-ff--sans pc-fw--normal">Platform Co-op</span><br/> Directory</h1>
<p class="subhead">The Platform Co-op Directory is a place where you can search for and connect with co-operatives and other members of the co-operative community.</p>
</div>
{% include 'maps/partials/messages.html' %}
{% include 'maps/search--home.html' %}
<div id="main-map"></div>
{% include 'maps/filters.html' %}
Expand Down
2 changes: 1 addition & 1 deletion maps/templates/maps/individual_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ <h1>{{ individual.first_name }} {{ individual.last_name }}</h1>
</p>
{% endif %}
</div>

{% include 'maps/partials/messages.html' %}
<div class="tabs">
<div role="tablist" aria-labelledby="tabs-label">
<span class="screen-reader-text" id="tabs-label">{% trans 'tab group' %}</span>
Expand Down
6 changes: 1 addition & 5 deletions maps/templates/maps/my_profiles.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,7 @@
<p><a class="link--breadcrumb" href="/">{% trans 'Home' %}</a></p>
<h1>{% trans 'My profiles' %}</h1>
</div>
{% if messages %}
{% for message in messages %}
{% include 'maps/partials/notification.html' %}
{% endfor %}
{% endif %}
{% include 'maps/partials/messages.html' %}
<h2>{% trans 'Personal profile' %}</h2>
{% if user.has_profile %}
<ul class="cards">
Expand Down
2 changes: 1 addition & 1 deletion maps/templates/maps/organization_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
{% block bodyclass %}profile profile--organization{% endblock %}
{% block content %}
<div class="page-header">

<p>
{% if organization.type.icon %}{% icon organization.type.icon %}{% endif %}
{{ organization.type }}
Expand Down Expand Up @@ -35,6 +34,7 @@ <h1>{{ organization.name }}</h1>
</p>
{% endif %}
</div>
{% include 'maps/partials/messages.html' %}
<div class="tabs">
<div role="tablist" aria-labelledby="tabs-label">
<span class="screen-reader-text" id="tabs-label">{% trans 'tab group' %}</span>
Expand Down
5 changes: 5 additions & 0 deletions maps/templates/maps/partials/messages.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{% if messages %}
{% for message in messages %}
{% include 'maps/partials/notification.html' %}
{% endfor %}
{% endif %}

0 comments on commit f031b21

Please sign in to comment.