diff --git a/assets/javascripts/templates/base.coffee b/assets/javascripts/templates/base.coffee index 841d1e0b..2127f993 100644 --- a/assets/javascripts/templates/base.coffee +++ b/assets/javascripts/templates/base.coffee @@ -7,5 +7,7 @@ app.templates.render = (name, value, args...) -> result else if typeof template is 'function' template(value, args...) + else if typeof template is 'object' + _ template, value else template diff --git a/assets/javascripts/templates/notice_tmpl.coffee b/assets/javascripts/templates/notice_tmpl.coffee index 10cc534e..cc358424 100644 --- a/assets/javascripts/templates/notice_tmpl.coffee +++ b/assets/javascripts/templates/notice_tmpl.coffee @@ -1,4 +1,4 @@ -notice = (text) -> """
#{text}
""" +notice = (text) -> """#{_ text}
""" app.templates.singleDocNotice = (doc) -> notice """ You're browsing the #{doc.fullName} documentation. To browse all docs, go to diff --git a/assets/javascripts/templates/notif_tmpl.coffee b/assets/javascripts/templates/notif_tmpl.coffee index 93611a5c..1b4e483b 100644 --- a/assets/javascripts/templates/notif_tmpl.coffee +++ b/assets/javascripts/templates/notif_tmpl.coffee @@ -1,12 +1,12 @@ notif = (title, html) -> html = html.replace /#{title} + """#{message}""" + notif title, """
#{_ message}""" app.templates.notifUpdateReady = -> textNotif """DevDocs has been updated.""",