aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2013-08-02 17:09:33 +0100
committerStruan Donald <struan@exo.org.uk>2013-08-02 17:09:33 +0100
commitf36222aaab3693aaa30b7ba3bcfe6178cc850ed9 (patch)
tree66ef048566a837303e79c138c8ea904aee506949 /templates
parentedc6465219192aac20853eb5f0b4e0d73390e8bb (diff)
Change offline page into text if we are viewing a draft
Diffstat (limited to 'templates')
-rw-r--r--templates/offline.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/templates/offline.html b/templates/offline.html
index a7fb8c0..8580277 100644
--- a/templates/offline.html
+++ b/templates/offline.html
@@ -17,7 +17,11 @@
<div data-role="content">
<div>
<p class="notopmargin">
+ <% if ( typeof id != 'undefined' ) { %>
+ [% loc("Oh dear - we can't detect an internet connection. However you can still edit the report now and send it later.") %]
+ <% } else { %>
[% loc("Oh dear - we can't detect an internet connection. However you can still start a report now and complete it later, by going to 'drafts' when you're back online.") %]
+ <% } %>
</p>
<p id="locate_result">