error = (title, text = '', links = '') ->
text = """
#{text}
""" if text
links = """#{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 or you could be offline.
If you keep seeing this, you're likely behind a proxy or firewall which blocks cross-domain requests. """,
""" #{back} · 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.unsupportedBrowser = """
Your browser is unsupported, sorry.
DevDocs is an API documentation browser which supports the following browsers:
- Recent version of Chrome
- Recent version of Firefox
- Safari 5.1+
- Opera 12.1+
- Internet Explorer 10+
- iOS 6+
- Android 4.1+
- Windows Phone 8+
If you're unable to upgrade, I apologize.
I decided to prioritize speed and new features over support for older browsers.
— Thibaut @DevDocs
"""