You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2023/01/13 19:05:39 UTC
[allura] branch master updated: [#8487] enable analytics even in debug/sandbox
This is an automated email from the ASF dual-hosted git repository.
brondsem pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/allura.git
The following commit(s) were added to refs/heads/master by this push:
new bf8474f61 [#8487] enable analytics even in debug/sandbox
bf8474f61 is described below
commit bf8474f61a5d1925454613bf9d4348dc370b3120
Author: Dillon Walls <di...@slashdotmedia.com>
AuthorDate: Thu Dec 22 22:20:12 2022 +0000
[#8487] enable analytics even in debug/sandbox
---
Allura/allura/templates/jinja_master/master.html | 2 +-
Allura/allura/templates_responsive/jinja_master/master.html | 2 +-
Allura/test.ini | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/Allura/allura/templates/jinja_master/master.html b/Allura/allura/templates/jinja_master/master.html
index 1b68d5acf..f5e030f0d 100644
--- a/Allura/allura/templates/jinja_master/master.html
+++ b/Allura/allura/templates/jinja_master/master.html
@@ -74,7 +74,7 @@
{% endblock %}
{% block head_bottom -%}
{% endblock %}
- {% if g.production_mode %}{{ g.analytics.display() }}{% endif %}
+ {{ g.analytics.display() }}
</head>
<body{% block body_attrs %}{% endblock %} class="{% block body_css_class %}{% endblock %}" id="forge">
diff --git a/Allura/allura/templates_responsive/jinja_master/master.html b/Allura/allura/templates_responsive/jinja_master/master.html
index defab9b84..11985f72f 100644
--- a/Allura/allura/templates_responsive/jinja_master/master.html
+++ b/Allura/allura/templates_responsive/jinja_master/master.html
@@ -74,7 +74,7 @@
{% block head %}
{% endblock %}
- {% if g.production_mode %}{{ g.analytics.display() }}{% endif %}
+ {{ g.analytics.display() }}
{% block head_bottom -%}
{% endblock %}
</head>
diff --git a/Allura/test.ini b/Allura/test.ini
index efe4228b6..d7a870deb 100644
--- a/Allura/test.ini
+++ b/Allura/test.ini
@@ -45,7 +45,7 @@ site_admin_project = test
; useful primarily for test suites, where we want to see the error right away
monq.raise_errors = true
-; Required so that g.production_mode is True, and Google Analytics is included (weird.)
+; Required so that g.production_mode is True.
; may also be useful for other reasons during tests (e.g. not intercepting error handling)
debug = false