mirror of
https://github.com/freeCodeCamp/devdocs
synced 2024-11-16 19:48:10 +01:00
9 lines
524 B
CoffeeScript
9 lines
524 B
CoffeeScript
notice = (text) -> """<p class="_notice-text">#{text}</p>"""
|
|
|
|
app.templates.singleDocNotice = (doc) ->
|
|
notice """ You're currently browsing the #{doc.name} documentation. To browse all docs, go to
|
|
<a href="http://#{app.config.production_host}" target="_top">#{app.config.production_host}</a>. """
|
|
|
|
app.templates.disabledDocNotice = ->
|
|
notice """ <strong>This documentation is currently disabled.</strong>
|
|
To enable it, click <a class="_notice-link" data-pick-docs>Select documentation</a>. """
|