History

Suggest reloading the app on load error

Thibaut committed 12 years ago

Commit a3dbd861 parent b660a091 file · +3 −2Browse files

Unified · Split

assets/javascripts/templates/error_tmpl.coffee+3−2
@@ -12,9 +12,10 @@ app.templates.notFoundPage = -> · 11 unmodified lines
1212
1313 app.templates.pageLoadError = ->
1414 error """ Oops, that page failed to load. """,
15− """ It may be missing from the server or you could be offline.<br>
15+ """ 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 which blocks cross-domain requests. """,
17− """ #{back} &middot; <a href="#" class="_error-link" data-retry>Retry</a> """
17+ """ #{back} &middot; <a href="/##{location.pathname}" target="_top" class="_error-link">Reload</a>
18+ &middot; <a href="#" class="_error-link" data-retry>Retry</a> """
1819
1920 app.templates.bootError = ->
2021 error """ Oops, the app failed to load. """,