notif = (title, html) -> html = html.replace /#{title}#{html}""" textNotif = (title, message) -> notif title, """

#{message}""" app.templates.notifUpdateReady = -> textNotif """ DevDocs has been updated. """, """ Reload the page to use the new version. """ app.templates.notifError = -> textNotif """ Oops, an error occured. """, """ Try reloading, and if the problem persists, resetting the app.
You can also report this issue on GitHub. """ app.templates.notifQuotaExceeded = -> textNotif """ Oops, the offline database has exceeded its size limitation. """, """ Unfortunately this quota can't be detected programmatically, and the database can't be opened while over the quota, so it had to be reset. """ app.templates.notifInvalidLocation = -> textNotif """ DevDocs must be loaded from #{app.config.production_host} """, """ Otherwise things are likely to break. """ app.templates.notifNews = (news) -> notif 'Changelog', """

#{app.templates.newsList(news, years: false)}
""" app.templates.notifUpdates = (docs, disabledDocs) -> html = '
' if docs.length > 0 html += '
' html += '
' if disabledDocs.length > 0 html += '

Disabled:' html += '

' notif 'Updates', "#{html}
" app.templates.notifShare = -> textNotif """ Hi there! """, """ Like DevDocs? Help us reach more developers by sharing the link with your friends, on Twitter, Facebook, Reddit, etc.
Thanks :) """ app.templates.notifUpdateDocs = -> textNotif """ Documentation updates available. """, """ Install them as soon as possible to avoid broken pages. """