From 4ce81c3c92a4d2f829fff08d6468530aa8d886ad Mon Sep 17 00:00:00 2001 From: Tim White Date: Tue, 31 Mar 2020 07:50:48 -0600 Subject: [PATCH] Adding noopener and noreferrer to target="_blank" links on sample templates. --- setup.py | 2 +- .../templates/termsandconditions/tc_accept_terms.html | 6 ++++-- .../templates/termsandconditions/tc_view_terms.html | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/setup.py b/setup.py index 0ef19a5f..40d96b83 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ setup( name="django-termsandconditions", - version="2.0.5", + version="2.0.6", url="https://github.com/cyface/django-termsandconditions", license="BSD", description="django-termsandconditions is a Django app that enables users to accept terms and conditions of a site.", diff --git a/termsandconditions/templates/termsandconditions/tc_accept_terms.html b/termsandconditions/templates/termsandconditions/tc_accept_terms.html index d2e66678..254dafb5 100644 --- a/termsandconditions/templates/termsandconditions/tc_accept_terms.html +++ b/termsandconditions/templates/termsandconditions/tc_accept_terms.html @@ -27,8 +27,10 @@

{% trans 'Full Text' %}

-

{% trans 'Print' %} {{ terms.name|safe }}

+

+ {% trans 'Print' %} {{ terms.name|safe }} +

{% endfor %}
{% csrf_token %} diff --git a/termsandconditions/templates/termsandconditions/tc_view_terms.html b/termsandconditions/templates/termsandconditions/tc_view_terms.html index 2653b1b9..cd6ea9e8 100644 --- a/termsandconditions/templates/termsandconditions/tc_view_terms.html +++ b/termsandconditions/templates/termsandconditions/tc_view_terms.html @@ -19,7 +19,7 @@

{{ terms.name|safe }} {{ terms.version_number|safe }}

{{ terms.text|safe }}

{% trans 'Print' %} {{ terms.name|safe }}

+ target="_blank" rel="noopener noreferrer">{% trans 'Print' %} {{ terms.name|safe }}

{% else %}

No terms defined.

{% endif %}