Skip to content

Commit 2ea6b79

Browse files
authored
Merge pull request #135 from ccmdesign/121-footer
[#121] Add footer to all pages
2 parents e322b80 + d5273cd commit 2ea6b79

File tree

4 files changed

+62
-11
lines changed

4 files changed

+62
-11
lines changed

prefix_finder/frontend/static/css/main.css

Lines changed: 48 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

prefix_finder/frontend/templates/base.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@
3232

3333
{% block main %}{% endblock %}
3434

35+
{% include "footer.html" %}
36+
3537
<!-- Scripts -->
3638
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
3739
{% block extra_scripts %}{% endblock %}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{% load i18n %}
2+
3+
<footer class="footer {% if request.resolver_match.url_name != "home" %}footer--sidebar{% endif %}">
4+
<p>
5+
{% trans "Built by" %} <a href="http://opendataservices.coop/">{% trans "Open Data Services" %}</a>.
6+
{% trans "The code for this site is available on Github" %}: <a href="https://github.com/OpenDataServices/org-ids/">{%trans "org-ids" %}</a>.
7+
{% trans "Licence" %}: <a href="https://www.gnu.org/licenses/agpl-3.0.html">{% trans "AGPLv3" %}</a>.
8+
{% trans "Report/View issues" %}: <a href="https://github.com/OpenDataServices/org-ids/issues">{% trans "org-id issues" %}</a>.
9+
<a href="{% url 'terms' %}">{% trans "Terms &amp; Conditions" %}</a>.
10+
{% blocktrans %}Running version {% endblocktrans %}<a href="https://github.com/OpenDataServices/org-ids/tree/{{ request.tag }}">{{ request.tag }}</a>.
11+
</p>
12+
</footer>

prefix_finder/frontend/templates/home.html

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -51,17 +51,6 @@
5151
<input type="submit" value="See lists" class="homepage__button"></input>
5252
</div>
5353
</form>
54-
55-
<footer>
56-
<p>
57-
{% trans "Built by" %} <a href="http://opendataservices.coop/">{% trans "Open Data Services" %}</a>.
58-
{% trans "The code for this site is available on Github" %}: <a href="https://github.com/OpenDataServices/org-ids/">{%trans "org-ids" %}</a>.
59-
{% trans "Licence" %}: <a href="https://www.gnu.org/licenses/agpl-3.0.html">{% trans "AGPLv3" %}</a>.
60-
{% trans "Report/View issues" %}: <a href="https://github.com/OpenDataServices/org-ids/issues">{% trans "org-id issues" %}</a>.
61-
<a href="{% url 'terms' %}">{% trans "Terms &amp; Conditions" %}</a>.
62-
{% blocktrans %}Running version {% endblocktrans %}<a href="https://github.com/OpenDataServices/org-ids/tree/{{ request.tag }}">{{ request.tag }}</a>.
63-
</p>
64-
</footer>
6554
</main>
6655
{% endblock %}
6756

0 commit comments

Comments
 (0)