error = (title, text = '', links = '') -> text = """

#{text}

""" if text links = """""" if links """

#{title}

#{text}#{links}
""" back = 'Go back' app.templates.notFoundPage = -> error """ Oops, that page doesn't exist. """, """ It may be missing from the source documentation or this could be a bug. """, back app.templates.pageLoadError = -> error """ Oops, that page failed to load. """, """ It may be missing from the server (try reloading the app) or you could be offline.
If you keep seeing this, you're likely behind a proxy or firewall which blocks cross-domain requests. """, """ #{back} · Reload · Retry """ app.templates.bootError = -> error """ Oops, the app failed to load. """, """ Check your Internet connection and try reloading.
If you keep seeing this, you're likely behind a proxy or firewall that blocks cross-domain requests. """ app.templates.offlineError = (reason) -> reason = switch reason when 'not_supported' """ Unfortunately your browser either doesn't support it or does not make it available. """ when 'cant_open' """ Although your browser appears to support it, DevDocs couldn't open the database.
This could be because you're browsing in private mode and have disallowed offline storage on the domain. """ when 'apple' """ Unfortunately Safari's implementation of IndexedDB is badly broken.
This message will automatically go away when Apple fix their code. """ error """ Oops, offline mode is unavailable. """, """ DevDocs requires IndexedDB to cache documentations for offline access.
#{reason} """ app.templates.unsupportedBrowser = """

Your browser is unsupported, sorry.

DevDocs is an API documentation browser which supports the following browsers:

If you're unable to upgrade, I apologize. I decided to prioritize speed and new features over support for older browsers.

Note: if you're already using one of the browsers above, check your settings and add-ons. The app uses feature detection, not user agent sniffing.

— Thibaut @DevDocs

"""