diff --git a/cps/admin.py b/cps/admin.py index 09a553b4..b415f412 100644 --- a/cps/admin.py +++ b/cps/admin.py @@ -108,6 +108,7 @@ def before_request(): logout_user() g.constants = constants g.user = current_user + g.google_site_verification = os.getenv('GOOGLE_SITE_VERIFICATION','') g.allow_registration = config.config_public_reg g.allow_anonymous = config.config_anonbrowse g.allow_upload = config.config_uploading diff --git a/cps/templates/http_error.html b/cps/templates/http_error.html index 103d1085..9c6c0f56 100644 --- a/cps/templates/http_error.html +++ b/cps/templates/http_error.html @@ -6,6 +6,9 @@ + {% if g.google_site_verification|length > 0 %} + + {% endif %} diff --git a/cps/templates/layout.html b/cps/templates/layout.html index 00923a6e..c142eb71 100644 --- a/cps/templates/layout.html +++ b/cps/templates/layout.html @@ -8,6 +8,9 @@ + {% if g.google_site_verification|length > 0 %} + + {% endif %} diff --git a/cps/templates/listenmp3.html b/cps/templates/listenmp3.html index 5b4bbdf7..9128383c 100644 --- a/cps/templates/listenmp3.html +++ b/cps/templates/listenmp3.html @@ -8,6 +8,9 @@ + {% if g.google_site_verification|length > 0 %} + + {% endif %} diff --git a/cps/templates/read.html b/cps/templates/read.html index e5311998..1b890c33 100644 --- a/cps/templates/read.html +++ b/cps/templates/read.html @@ -7,6 +7,9 @@ + {% if g.google_site_verification|length > 0 %} + + {% endif %} diff --git a/cps/templates/readcbr.html b/cps/templates/readcbr.html index 411e3fdd..9a7a489a 100644 --- a/cps/templates/readcbr.html +++ b/cps/templates/readcbr.html @@ -7,6 +7,9 @@