aboutsummaryrefslogtreecommitdiffstats
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
parentedc6465219192aac20853eb5f0b4e0d73390e8bb (diff)
Change offline page into text if we are viewing a draft
-rw-r--r--locale/FixMyStreetMobileApp.po24
-rw-r--r--locale/en_GB.UTF-8/LC_MESSAGES/FixMyStreetMobileApp.po32
-rw-r--r--src/templates/en/offline.html4
-rw-r--r--templates/offline.html4
4 files changed, 38 insertions, 26 deletions
diff --git a/locale/FixMyStreetMobileApp.po b/locale/FixMyStreetMobileApp.po
index 442948c..4ddf6f8 100644
--- a/locale/FixMyStreetMobileApp.po
+++ b/locale/FixMyStreetMobileApp.po
@@ -17,7 +17,7 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
-#: templates/offline.html:46 templates/photo.html:10
+#: templates/offline.html:50 templates/photo.html:10
msgid "(optional)"
msgstr ""
@@ -37,11 +37,11 @@ msgstr ""
msgid "Add a Photo"
msgstr ""
-#: templates/offline.html:46
+#: templates/offline.html:50
msgid "Add a Photo "
msgstr ""
-#: templates/offline.html:48 templates/photo.html:19
+#: templates/offline.html:52 templates/photo.html:19
msgid "Add an existing photo"
msgstr ""
@@ -137,7 +137,7 @@ msgstr ""
msgid "Invalid report"
msgstr ""
-#: templates/offline.html:27
+#: templates/offline.html:31
msgid "Locate"
msgstr ""
@@ -177,7 +177,11 @@ msgstr ""
msgid "Offline"
msgstr ""
-#: templates/offline.html:20
+#: templates/offline.html:21
+msgid "Oh dear - we can't detect an internet connection. However you can still edit the report now and send it later."
+msgstr ""
+
+#: templates/offline.html:23
msgid "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."
msgstr ""
@@ -249,11 +253,11 @@ msgstr ""
msgid "Please search for a street name and area, or postcode."
msgstr ""
-#: templates/details.html:9 templates/offline.html:33
+#: templates/details.html:9 templates/offline.html:37
msgid "Provide a title"
msgstr ""
-#: templates/offline.html:60 templates/photo.html:21
+#: templates/offline.html:64 templates/photo.html:21
msgid "Remove Photo"
msgstr ""
@@ -305,7 +309,7 @@ msgstr ""
msgid "Subject"
msgstr ""
-#: templates/offline.html:47 templates/photo.html:20
+#: templates/offline.html:51 templates/photo.html:20
msgid "Take a new photo"
msgstr ""
@@ -365,7 +369,7 @@ msgstr ""
msgid "This app needs to send you a confirmation email before we can send your report to the council."
msgstr ""
-#: templates/offline.html:25
+#: templates/offline.html:29
msgid "This report has a position."
msgstr ""
@@ -403,7 +407,7 @@ msgstr ""
msgid "Your Email"
msgstr ""
-#: templates/offline.html:56
+#: templates/offline.html:60
msgid "Your Photo"
msgstr ""
diff --git a/locale/en_GB.UTF-8/LC_MESSAGES/FixMyStreetMobileApp.po b/locale/en_GB.UTF-8/LC_MESSAGES/FixMyStreetMobileApp.po
index 81d076f..ebccd0b 100644
--- a/locale/en_GB.UTF-8/LC_MESSAGES/FixMyStreetMobileApp.po
+++ b/locale/en_GB.UTF-8/LC_MESSAGES/FixMyStreetMobileApp.po
@@ -18,7 +18,7 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
-#: templates/offline.html:46 templates/photo.html:10
+#: templates/offline.html:50 templates/photo.html:10
msgid "(optional)"
msgstr ""
@@ -38,11 +38,11 @@ msgstr ""
msgid "Add a Photo"
msgstr ""
-#: templates/offline.html:46
+#: templates/offline.html:50
msgid "Add a Photo "
msgstr ""
-#: templates/offline.html:48 templates/photo.html:19
+#: templates/offline.html:52 templates/photo.html:19
msgid "Add an existing photo"
msgstr ""
@@ -142,7 +142,7 @@ msgstr ""
msgid "Invalid report"
msgstr ""
-#: templates/offline.html:27
+#: templates/offline.html:31
msgid "Locate"
msgstr ""
@@ -187,7 +187,13 @@ msgstr ""
msgid "Offline"
msgstr ""
-#: templates/offline.html:20
+#: templates/offline.html:21
+msgid ""
+"Oh dear - we can't detect an internet connection. However you can still edit "
+"the report now and send it later."
+msgstr ""
+
+#: templates/offline.html:23
msgid ""
"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 "
@@ -267,11 +273,11 @@ msgstr ""
msgid "Please search for a street name and area, or postcode."
msgstr ""
-#: templates/details.html:9 templates/offline.html:33
+#: templates/details.html:9 templates/offline.html:37
msgid "Provide a title"
msgstr ""
-#: templates/offline.html:60 templates/photo.html:21
+#: templates/offline.html:64 templates/photo.html:21
msgid "Remove Photo"
msgstr ""
@@ -324,7 +330,7 @@ msgstr ""
msgid "Subject"
msgstr ""
-#: templates/offline.html:47 templates/photo.html:20
+#: templates/offline.html:51 templates/photo.html:20
msgid "Take a new photo"
msgstr ""
@@ -395,7 +401,7 @@ msgid ""
"report to the council."
msgstr ""
-#: templates/offline.html:25
+#: templates/offline.html:29
msgid "This report has a position."
msgstr ""
@@ -425,17 +431,11 @@ msgid ""
"Once it arrives click the link in the email to confirm your report."
msgstr ""
-#. ('<%= user.email %>')
-#. ("<%= user.email %>")
-#: templates/submit_confirm.html:7
-msgid "You are logged in as %s"
-msgstr ""
-
#: templates/login.html:24
msgid "Your Email"
msgstr ""
-#: templates/offline.html:56
+#: templates/offline.html:60
msgid "Your Photo"
msgstr ""
diff --git a/src/templates/en/offline.html b/src/templates/en/offline.html
index b73ed47..ca62051 100644
--- a/src/templates/en/offline.html
+++ b/src/templates/en/offline.html
@@ -17,7 +17,11 @@
<div data-role="content">
<div>
<p class="notopmargin">
+ <% if ( typeof id != 'undefined' ) { %>
+ Oh dear - we can't detect an internet connection. However you can still edit the report now and send it later.
+ <% } else { %>
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">
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">