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

#{text}

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

#{title}

#{text}#{links}
""" back = 'Go back' app.templates.notFoundPage = -> error """ Page not found. """, """ It may be missing from the source documentation or this could be a bug. """, back app.templates.pageLoadError = -> error """ The page failed to load. """, """ It may be missing from the server (try reloading the app) or you could be offline (try installing the documentation for offline usage when online again).
If you're online and you keep seeing this, you're likely behind a proxy or firewall that blocks cross-domain requests. """, """ #{back} · Reload · Retry """ app.templates.bootError = -> error """ 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, exception) -> if reason is 'cookie_blocked' return error """ Cookies must be enabled to use offline mode. """ reason = switch reason when 'not_supported' """ DevDocs requires IndexedDB to cache documentations for offline access.
Unfortunately your browser either doesn't support IndexedDB or doesn't make it available. """ when 'buggy' """ DevDocs requires IndexedDB to cache documentations for offline access.
Unfortunately your browser's implementation of IndexedDB contains bugs that prevent DevDocs from using it. """ when 'private_mode' """ Your browser appears to be running in private mode.
This prevents DevDocs from caching documentations for offline access.""" when 'exception' """ An error occurred when trying to open the IndexedDB database:
#{exception.name}: #{exception.message} """ when 'cant_open' """ An error occurred when trying to open the IndexedDB database:
#{exception.name}: #{exception.message}
This could be because you're browsing in private mode or have disallowed offline storage on the domain. """ when 'version' """ The IndexedDB database was modified with a newer version of the app.
Reload the page to use offline mode. """ when 'empty' """ The IndexedDB database appears to be corrupted. Try resetting the app. """ error 'Offline mode is unavailable.', 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, we apologize. We 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.

@DevDocs

"""