Skip to content
Merged
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
2 changes: 2 additions & 0 deletions pydotorg/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,8 @@
NONCE,
"https://analytics.python.org",
"https://media.ethicalads.io",
# EthicalAds fetches ad decisions as JSONP <script> tags
"https://server.ethicalads.io",
"https://ajax.googleapis.com",
],
"style-src": [
Expand Down
7 changes: 0 additions & 7 deletions templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,6 @@
<meta name="HandheldFriendly" content="True">
<meta name="format-detection" content="telephone=no">

{% if not request.disable_tracking %}
<script async
src="https://media.ethicalads.io/media/client/v1.4.0/ethicalads.min.js"
integrity="sha256-U3hKDidudIaxBDEzwGJApJgPEf2mWk6cfMWghrAa6i0= sha384-UcmsCqcNRSLW/dV3Lo1oCi2/VaurXbib6p4HyUEOeIa/4OpsrnucrugAefzVZJfI sha512-q4t1L4xEjGV2R4hzqCa41P8jrgFUS8xTb8rdNv4FGvw7FpydVj/kkxBJHOiaoxHa8olCcx1Slk9K+3sNbsM4ug=="
crossorigin="anonymous"
></script>
{% endif %}
<script src="{{ STATIC_URL }}js/libs/modernizr.js"></script>

{% stylesheet 'style' %}
Expand Down
12 changes: 12 additions & 0 deletions templates/psf/sponsors-list.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,18 @@
{% block page_title %}Python Software Foundation Sponsors | Python Software Foundation{% endblock %}
{% block og_title %}Python Software Foundation Sponsors{% endblock %}

{% block head %}
{{ block.super }}
{# EthicalAds renders the sponsor logos below; no other page has ad placements. #}
{% if not request.disable_tracking %}
<script async
src="https://media.ethicalads.io/media/client/v1.4.0/ethicalads.min.js"
integrity="sha256-U3hKDidudIaxBDEzwGJApJgPEf2mWk6cfMWghrAa6i0= sha384-UcmsCqcNRSLW/dV3Lo1oCi2/VaurXbib6p4HyUEOeIa/4OpsrnucrugAefzVZJfI sha512-q4t1L4xEjGV2R4hzqCa41P8jrgFUS8xTb8rdNv4FGvw7FpydVj/kkxBJHOiaoxHa8olCcx1Slk9K+3sNbsM4ug=="
crossorigin="anonymous"
></script>
{% endif %}
{% endblock head %}

{% block content %}

<article class="text">
Expand Down
Loading