Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement footer links and revised copyright #265

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions electionleaflets/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ def root(x):

SITE_ID = 1
SITE_LOGO = "images/logo.png"
SITE_TITLE = "Election Leaflets"
USE_I18N = False
USE_L10N = True
LOGIN_URL = "/"
Expand Down
38 changes: 37 additions & 1 deletion electionleaflets/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,40 @@
{% block content %}
{% endblock %}


{% block footer-links %}
<div class="ds-footer-links">
<nav>
<h2 class="ds-h6">Election Leaflets</h2>
<ul>
<li><a href="{% url 'home' %}">Home</a></li>
<li><a href="{% url 'upload_leaflet' %}">Upload a leaflet</a></li>
<li><a href="{% url 'leaflets' %}">Latest leaflets</a></li>
<li><a href="{% url 'about_view' %}">About {{ SITE_TITLE }}</a></li>
<li><a href="https://democracyclub.org.uk/privacy/">Privacy</a></li>
</ul>
</nav>
<h2 class="ds-h6">About Democracy Club</h2>
<ul>
<li><a href="https://democracyclub.org.uk/about/">About</a></li>
<li><a href="https://democracyclub.org.uk/donate/">Donate</a></li>
<li><a href="https://democracyclub.org.uk/jobs/">Jobs</a></li>
<li><a href="https://democracyclub.org.uk/blog/">Blog</a></li>
<li><a href="https://democracyclub.org.uk/blog/feed">Blog RSS/Atom feed</a></li>
<li><a href="https://democracyclub.org.uk/privacy/">Privacy &amp; Terms</a></li>
<li><a href="https://democracyclub.org.uk/code-of-conduct/">Code of Conduct</a></li>
</ul>
</nav>
<nav>
<h2 class="ds-h6">Connect with us</h2>
<ul>
<li><a href="https://democracyclub.org.uk/contact/">Contact Us</a></li>
<li><a rel="me" href="https://mastodon.me.uk/@DemocracyClub">Mastodon</a></li>
<li><a href="https://twitter.com/democlub">X</a></li>
<li><a href="https://github.com/DemocracyClub">GitHub</a></li>
<li><a href="https://www.linkedin.com/company/democracy-club-cic">LinkedIn</a></li>
<li><a href="https://mailinglist.democracyclub.org.uk/subscription/form">Join our Mailing List</a></li>
<li><a href="https://mailinglist.democracyclub.org.uk/archive">Newsletter Archive</a></li>
</ul>
</nav>
</div>
{% endblock footer-links %}