Skip to content

Commit

Permalink
Adding noopener and noreferrer to target="_blank" links on sample tem…
Browse files Browse the repository at this point in the history
…plates.
  • Loading branch information
cyface committed Mar 31, 2020
1 parent 3e74eba commit 4ce81c3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,10 @@ <h4>{% trans 'Full Text' %}</h4>
</div>
</div>

<p><a href="{% url "tc_print_page" terms.slug|safe terms.version_number|safe %}"
target="_blank">{% trans 'Print' %} {{ terms.name|safe }}</a></p>
<p>
<a href="{% url "tc_print_page" terms.slug|safe terms.version_number|safe %}"
target="_blank" rel="noopener noreferrer">{% trans 'Print' %} {{ terms.name|safe }}</a>
</p>
{% endfor %}
<form action="{% url 'tc_accept_page' %}" method="post" id="tc-terms-form" data-ajax="false">
{% csrf_token %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ <h1>{{ terms.name|safe }} {{ terms.version_number|safe }}</h1>
{{ terms.text|safe }}
</div>
<p><a href="{% url 'tc_print_page' terms.slug|safe terms.version_number|safe %}"
target="_blank">{% trans 'Print' %} {{ terms.name|safe }}</a></p>
target="_blank" rel="noopener noreferrer">{% trans 'Print' %} {{ terms.name|safe }}</a></p>
{% else %}
<h1>No terms defined.</h1>
{% endif %}
Expand Down

0 comments on commit 4ce81c3

Please sign in to comment.