diff --git a/cps/admin.py b/cps/admin.py index 09a553b40..b415f412a 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 103d10851..9c6c0f568 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 7502514a1..22a6baec0 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 2067bf38c..ff1ac0499 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 e53119985..1b890c33d 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 411e3fdd4..9a7a489a7 100644 --- a/cps/templates/readcbr.html +++ b/cps/templates/readcbr.html @@ -7,6 +7,9 @@ {{_('Comic Reader')}} | {{title}} + {% if g.google_site_verification|length > 0 %} + + {% endif %} diff --git a/cps/templates/readdjvu.html b/cps/templates/readdjvu.html index 3504e3947..ff512e79d 100644 --- a/cps/templates/readdjvu.html +++ b/cps/templates/readdjvu.html @@ -6,6 +6,10 @@ + {% if g.google_site_verification|length > 0 %} + + {% endif %} + diff --git a/cps/templates/readpdf.html b/cps/templates/readpdf.html index ca3f23894..6d6963740 100644 --- a/cps/templates/readpdf.html +++ b/cps/templates/readpdf.html @@ -26,6 +26,9 @@ See https://github.com/adobe-type-tools/cmap-resources + {% if g.google_site_verification|length > 0 %} + + {% endif %} {{_('PDF Reader')}} | {{title}} diff --git a/cps/templates/readtxt.html b/cps/templates/readtxt.html index b157fe95a..71dd0e985 100644 --- a/cps/templates/readtxt.html +++ b/cps/templates/readtxt.html @@ -7,6 +7,10 @@ + {% if g.google_site_verification|length > 0 %} + + {% endif %} + diff --git a/cps/templates/shelfdown.html b/cps/templates/shelfdown.html index 1016c0a25..50f339b93 100755 --- a/cps/templates/shelfdown.html +++ b/cps/templates/shelfdown.html @@ -6,6 +6,9 @@ + {% if g.google_site_verification|length > 0 %} + + {% endif %}