Skip to content
Snippets Groups Projects
Commit 272ac95a authored by Antoine Lambert's avatar Antoine Lambert
Browse files

templates: Switch back to recommended use of django_js_reverse

parent 92b3bbc6
No related branches found
No related tags found
No related merge requests found
......@@ -380,6 +380,14 @@ module.exports = {
'licenseFilePath': './node_modules/pdfjs-dist/LICENSE'
}
],
'/jsreverse/': [
{
'id': 'jsreverse',
'path': '/jsreverse/',
'spdxLicenseExpression': 'AGPL-3.0-or-later',
'licenseFilePath': './LICENSE'
}
]
},
loadedMathJaxJsFiles
......
......@@ -243,3 +243,5 @@ CACHES = {
'LOCATION': 'swh_web_cache',
}
}
JS_REVERSE_JS_MINIFY = False
......@@ -41,9 +41,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
@licend The above is the entire license notice for the JavaScript code in this page.
*/
</script>
<script type="text/javascript" charset="utf-8">
{% js_reverse_inline %}
</script>
<script src="{% url 'js_reverse' %}" type="text/javascript"></script>
<base target="_parent">
</head>
......
......@@ -45,9 +45,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
</script>
<script type="text/javascript" charset="utf-8">
{% js_reverse_inline %}
</script>
<script src="{% url 'js_reverse' %}" type="text/javascript"></script>
{% block header %}{% endblock %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment