History

Tweak error messages

Thibaut Courouble committed 10 years ago

Commit 1db5a851 parent c2ff01d2 files · +5 −5Browse files

Showing the changes to assets/javascripts (2 of 2 files). Show all

Unified · Split

2 files
  1. assets/javascripts/templates/error_tmpl.coffee +4 −4
  2. assets/javascripts/templates/notif_tmpl.coffee +1 −1
assets/javascripts/templates/error_tmpl.coffee+4−4
@@ -6,19 +6,19 @@ error = (title, text = '', links = '') -> · 5 unmodified lines
66 back = '<a href="javascript:history.back()" class="_error-link">Go back</a>'
77
88 app.templates.notFoundPage = ->
9− error """ Oops, that page doesn't exist. """,
9+ error """ Page not found. """,
1010 """ It may be missing from the source documentation or this could be a bug. """,
1111 back
1212
1313 app.templates.pageLoadError = ->
14− error """ Oops, the page failed to load. """,
14+ error """ The page failed to load. """,
1515 """ It may be missing from the server (try reloading the app) or you could be offline.<br>
1616 If you keep seeing this, you're likely behind a proxy or firewall that blocks cross-domain requests. """,
1717 """ #{back} &middot; <a href="/##{location.pathname}" target="_top" class="_error-link">Reload</a>
1818 &middot; <a href="#" class="_error-link" data-retry>Retry</a> """
1919
2020 app.templates.bootError = ->
21− error """ Oops, the app failed to load. """,
21+ error """ The app failed to load. """,
2222 """ Check your Internet connection and try <a href="javascript:location.reload()">reloading</a>.<br>
2323 If you keep seeing this, you're likely behind a proxy or firewall that blocks cross-domain requests. """
2424
@@ -33,7 +33,7 @@ app.templates.offlineError = (reason) -> · 8 unmodified lines
3333 """ Unfortunately Safari's implementation of IndexedDB is <a href="https://bugs.webkit.org/show_bug.cgi?id=136937">badly broken</a>.<br>
3434 This message will automatically go away when Apple fix their code. """
3535
36− error """ Oops, offline mode is unavailable. """,
36+ error """ Offline mode is unavailable. """,
3737 """ DevDocs requires IndexedDB to cache documentations for offline access.<br>#{reason} """
3838
3939 app.templates.unsupportedBrowser = """
assets/javascripts/templates/notif_tmpl.coffee+1−1
@@ -16,7 +16,7 @@ app.templates.notifError = -> · 15 unmodified lines
1616 You can also report this issue on <a href="https://github.com/Thibaut/devdocs/issues/new" target="_blank">GitHub</a>. """
1717
1818 app.templates.notifQuotaExceeded = ->
19− textNotif """ Oops, the offline database has exceeded its size limitation. """,
19+ textNotif """ The offline database has exceeded its size limitation. """,
2020 """ Unfortunately this quota can't be detected programmatically, and the database can't be opened while over the quota, so it had to be reset. """
2121
2222 app.templates.notifInvalidLocation = ->