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
12 12
13app.templates.pageLoadError = ->13app.templates.pageLoadError = ->
14 error """ Oops, that page failed to load. """,14 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>
16 If you keep seeing this, you're likely behind a proxy or firewall which blocks cross-domain requests. """,16 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> """
18 19
19app.templates.bootError = ->20app.templates.bootError = ->
20 error """ Oops, the app failed to load. """,21 error """ Oops, the app failed to load. """,