aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2019-01-29 11:06:45 +0000
committerMatthew Somerville <matthew-github@dracos.co.uk>2019-01-29 11:26:51 +0000
commit833a66f7c0844d9bf7c355ba9d4c2fb6cb0a655b (patch)
tree32798d550fbe47b008addaf6fa1f239cd077c665
parent8ffb52bb9c981118b201eed722c4db7e0412dda5 (diff)
Reduce JavaScript on appcache page.
-rw-r--r--templates/web/base/common_scripts.html1
-rw-r--r--templates/web/base/offline/appcache.html3
2 files changed, 3 insertions, 1 deletions
diff --git a/templates/web/base/common_scripts.html b/templates/web/base/common_scripts.html
index 3d923f33f..ac66aad46 100644
--- a/templates/web/base/common_scripts.html
+++ b/templates/web/base/common_scripts.html
@@ -18,6 +18,7 @@ ELSIF bodyclass.match('alertpage');
scripts.push(
version('/js/geolocation.js'),
);
+ELSIF bodyclass.match('offlinepage');
ELSE;
scripts.push(
version('/js/validation_rules.js'),
diff --git a/templates/web/base/offline/appcache.html b/templates/web/base/offline/appcache.html
index ba54b229a..ed48b7a00 100644
--- a/templates/web/base/offline/appcache.html
+++ b/templates/web/base/offline/appcache.html
@@ -1,4 +1,5 @@
-[% INCLUDE 'header.html' appcache = 1 bodyclass = "fullwidthpage" %]
+[% SET bodyclass = "fullwidthpage offlinepage" ~%]
+[% INCLUDE 'header.html' appcache = 1 %]
<h1>[% loc('Internet glitch') %]</h1>