-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a0ba1eb
commit e666907
Showing
17 changed files
with
57 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,9 @@ | ||
from django.contrib.staticfiles import finders | ||
|
||
searched_locations = finders.searched_locations | ||
|
||
|
||
def obl_microsites(request): | ||
return { | ||
"LOCALITY": request.obl_locality, | ||
} | ||
if not hasattr(request, "microsite"): | ||
return {} | ||
return {"MICROSITE": request.microsite} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{% extends 'peachjam/_footer.html' %} | ||
{% load static %} | ||
{% block newsletter-form %}{% endblock %} | ||
{% block social-media %}{% endblock %} | ||
{% block first-content-column %} | ||
<h5>{{ MICROSITE.locality.name }} By-laws</h5> | ||
<ul class="list-unstyled"> | ||
<li> | ||
<a href="{% url 'home_page' %}">By-laws</a> | ||
</li> | ||
<li> | ||
<a href="{{ MICROSITE.website }}">{{ MICROSITE.locality.name }} website</a> | ||
</li> | ||
</ul> | ||
<img src="{% static 'images/municipalities/'|add:MICROSITE.code|add:"-logo.png" %}" | ||
alt="{{ MICROSITE.locality.name }}"/> | ||
{% endblock %} | ||
{% block second-content-column %}{% endblock %} | ||
{% block third-content-column %} | ||
<p> | ||
The by-laws are published through a partnership between {{ MICROSITE.locality.name }} Municipality and | ||
<a href="https://openup.org.za">OpenUp</a>. | ||
</p> | ||
<img src="{% static 'images/openup-logo.svg' %}" | ||
alt="OpenUp" | ||
style="height: 40px"/> | ||
{% endblock %} | ||
{% block footer-logos %}{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.