diff options
Diffstat (limited to 'templates/base')
-rw-r--r-- | templates/base/alert.tmpl | 6 | ||||
-rw-r--r-- | templates/base/head.tmpl | 5 |
2 files changed, 8 insertions, 3 deletions
diff --git a/templates/base/alert.tmpl b/templates/base/alert.tmpl index 60b7b588d7..4f53db742a 100644 --- a/templates/base/alert.tmpl +++ b/templates/base/alert.tmpl @@ -1,15 +1,15 @@ {{if .Flash.ErrorMsg}} <div class="ui negative message"> - <p>{{.Flash.ErrorMsg}}</p> + <p>{{.Flash.ErrorMsg | Safe}}</p> </div> {{end}} {{if .Flash.SuccessMsg}} <div class="ui positive message"> - <p>{{.Flash.SuccessMsg}}</p> + <p>{{.Flash.SuccessMsg | Safe}}</p> </div> {{end}} {{if .Flash.InfoMsg}} <div class="ui info message"> - <p>{{.Flash.InfoMsg}}</p> + <p>{{.Flash.InfoMsg| Safe}}</p> </div> {{end}} diff --git a/templates/base/head.tmpl b/templates/base/head.tmpl index 68ea478942..0c19b19cf9 100644 --- a/templates/base/head.tmpl +++ b/templates/base/head.tmpl @@ -24,6 +24,11 @@ {{if .RequireSimpleMDE}} <link rel="stylesheet" href="{{AppSubUrl}}/plugins/simplemde-1.10.1/simplemde.min.css"> <script src="{{AppSubUrl}}/plugins/simplemde-1.10.1/simplemde.min.js"></script> + <script src="{{AppSubUrl}}/plugins/codemirror-5.17.0/addon/mode/loadmode.js"></script> + <script src="{{AppSubUrl}}/plugins/codemirror-5.17.0/mode/meta.js"></script> + <script> + CodeMirror.modeURL = "{{AppSubUrl}}/plugins/codemirror-5.17.0/mode/%N/%N.js"; + </script> {{end}} <!-- Stylesheet --> |