Skip to content

Commit

Permalink
Update offline fallback copy.
Browse files Browse the repository at this point in the history
  • Loading branch information
sallybracegirdle authored and dracos committed Dec 5, 2023
1 parent f77895e commit c5bfe80
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion t/app/controller/offline.t
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ subtest 'service worker' => sub {

subtest 'offline fallback page' => sub {
$mech->get_ok('/offline/fallback');
$mech->content_contains('Offline');
$mech->content_contains('currently offline');
$mech->content_contains('offline_list');
};

Expand Down
8 changes: 4 additions & 4 deletions templates/web/base/offline/fallback.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[% SET bodyclass = "fullwidthpage offlinepage" ~%]
[% INCLUDE 'header.html' %]

<h1>[% loc('Offline') %]</h1>
<h1>[% loc('You are currently offline') %]</h1>

<p>
[% loc('You are currently offline. You can still make draft reports below, to finish and submit when you have signal again.') %]
[% loc('It looks like you’re not connected to the internet right now. Don’t worry, you can start a report below, save it as a draft and finish it when you’re connected to the internet again. You can create multiple draft reports if you need to report more than one problem.') %]
</p>

<ul class="item-list item-list--reports" id="offline_list"></ul>
Expand All @@ -31,8 +31,8 @@ <h3 class="item-list__heading" data-template-field="title"></h3>
</div>

<div id="offline_form">
<h2>[% loc('New offline draft report') %]</h2>
<p>[% loc('Anything you enter here is automatically saved for finishing and submitting when you’re back online.') %]</p>
<h2>[% loc('Start a new offline report') %]</h2>
<p>[% loc('Fill in the form below to start your report and click ‘save draft’ when you’re done. For peace of mind, any information you provide here will also be saved automatically. When you’re connected to the internet again, come back to finish and submit it.') %]</p>
<form id="offline_report">
<input name=id type=hidden />
<input name=latitude type=hidden />
Expand Down

0 comments on commit c5bfe80

Please sign in to comment.