Skip to content

Commit

Permalink
- Fix small autoescape issue on detail templates
Browse files Browse the repository at this point in the history
  • Loading branch information
afabiani committed Dec 7, 2018
1 parent d83bf7f commit 5c97985
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 4 additions & 2 deletions geonode/documents/templates/documents/document_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -243,14 +243,16 @@ <h4>{% trans "Permissions" %}</h4>
{% endif %}
{% include 'rating.html' %}
{% include 'request_download.html' %}
{% if DISPLAY_SOCIAL %}
<script type="text/javascript">
{% if DISPLAY_SOCIAL %}
{% autoescape off %}
(function() {
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
po.src = 'https://apis.google.com/js/plusone.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
})();
{% endif %}
{% endautoescape %}
</script>
{% endif %}
{% include "_permissions_form_js.html" %}
{% endblock extra_script %}
4 changes: 4 additions & 0 deletions geonode/layers/templates/layers/layer_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -723,11 +723,15 @@ <h4>{% trans "External service layer" %}</h4>
{% include 'rating.html' %}
{% include 'request_download.html' %}
{% if DISPLAY_SOCIAL %}
<script type="text/javascript">
{% autoescape off %}
(function() {
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
po.src = 'https://apis.google.com/js/plusone.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
})();
{% endautoescape %}
</script>
{% endif %}
<script type="text/javascript">
$("#comment_submit_btn").click(function(event) {
Expand Down

0 comments on commit 5c97985

Please sign in to comment.