Skip to content

Commit

Permalink
footer links added, terms of use page created
Browse files Browse the repository at this point in the history
  • Loading branch information
zaiziclebby committed Nov 2, 2023
1 parent 7534be7 commit e684cb8
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 4 deletions.
5 changes: 5 additions & 0 deletions app/main/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,11 @@ def privacy():
return render_template("privacy.html")


@bp.route("/terms-of-use", methods=["GET"])
def terms_of_use():
return render_template("terms-of-use.html")


@bp.app_errorhandler(HTTPException)
def http_exception(error):
return render_template(f"{error.code}.html"), error.code
Expand Down
8 changes: 4 additions & 4 deletions app/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -159,22 +159,22 @@ <h2 class="govuk-visually-hidden">Support links</h2>
</a>
</li>
<li class="govuk-footer__inline-list-item">
<a class="govuk-footer__link" href="#">
<a class="govuk-footer__link" href="{{ url_for('main.terms_of_use')}}">
Terms of use
</a>
</li>
<li class="govuk-footer__inline-list-item">
<a class="govuk-footer__link" href="#">
<a class="govuk-footer__link" href="{{ url_for('main.privacy')}}">
Privacy
</a>
</li>
<li class="govuk-footer__inline-list-item">
<a class="govuk-footer__link" href="#">
<a class="govuk-footer__link" href="{{ url_for('main.cookies')}}">
Cookies policy
</a>
</li>
<li class="govuk-footer__inline-list-item">
<a class="govuk-footer__link" href="#">
<a class="govuk-footer__link" href="{{ url_for('main.accessibility')}}">
Accessibility
</a>
</li>
Expand Down
23 changes: 23 additions & 0 deletions app/templates/main/terms-of-use.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{% extends "base.html" %}


{%- from 'govuk_frontend_jinja/components/back-link/macro.html' import govukBackLink -%}

{% block pageTitle %}Terms of use – {{config['SERVICE_NAME']}} – GOV.UK{% endblock %}

{% block beforeContent %}
{{ super() }}
{{ govukBackLink({
'text': "Back",
'href': url_for('main.index')
}) }}
{% endblock %}

{% block content %}
<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">
{{ super() }}
<h1 class="govuk-heading-xl">Terms of use</h1>
</div>
</div>
{% endblock %}

0 comments on commit e684cb8

Please sign in to comment.