From 081d954140cb8bc064464a8b1418e5640779bac3 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Jun 04 2019 08:45:52 +0000 Subject: Some more javascript fixes to support CSP headers All the inline javascript that is legit for the browser to run must be using a nonce, without that things will no work. This commit fixes a few missing ones and a bit of indentation/style. Signed-off-by: Pierre-Yves Chibon --- diff --git a/pagure/templates/blame.html b/pagure/templates/blame.html index db1af7c..9784a3d 100644 --- a/pagure/templates/blame.html +++ b/pagure/templates/blame.html @@ -180,7 +180,9 @@ No content found in this repository - + + }); + + {% endblock %} diff --git a/pagure/templates/issue.html b/pagure/templates/issue.html index 325b6ab..97dd00f 100644 --- a/pagure/templates/issue.html +++ b/pagure/templates/issue.html @@ -637,7 +637,7 @@ namespace=repo.namespace, repo=repo.name, issueid=issueid) {% block jscripts %} {{ super() }} - + src="{{ url_for('static', + filename='vendor/lazyload/lazyload.min.js') }}?version={{ g.version}}"> + + +