You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by di...@apache.org on 2022/12/22 22:20:22 UTC

[allura] branch dw/8487 created (now 8d99d8175)

This is an automated email from the ASF dual-hosted git repository.

dill0wn pushed a change to branch dw/8487
in repository https://gitbox.apache.org/repos/asf/allura.git


      at 8d99d8175 [#8487] enable analytics even in debug/sandbox

This branch includes the following new commits:

     new 8d99d8175 [#8487] enable analytics even in debug/sandbox

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[allura] 01/01: [#8487] enable analytics even in debug/sandbox

Posted by di...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

dill0wn pushed a commit to branch dw/8487
in repository https://gitbox.apache.org/repos/asf/allura.git

commit 8d99d8175b807e1575367d32d801770f77e24585
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 79659f5f8..90312801c 100644
--- a/Allura/allura/templates/jinja_master/master.html
+++ b/Allura/allura/templates/jinja_master/master.html
@@ -72,7 +72,7 @@
 
     {% block head %}
     {% endblock %}
-    {% if g.production_mode %}{{ g.analytics.display() }}{% endif %}
+    {{ g.analytics.display() }}
     {% block head_bottom -%}
     {% endblock %}
 </head>
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