Merge pull request #38 from davidtaylorhq/html_safe

Add `html_safe` to raw HTML string
This commit is contained in:
Sam 2018-01-31 10:45:17 +11:00 committed by GitHub
commit 8f08c864d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -17,7 +17,7 @@ module DockerManager
if (version < expected_version) || (ruby_version < expected_ruby_version) if (version < expected_version) || (ruby_version < expected_ruby_version)
render html: <<~HTML message = <<~HTML
<html><head></head><body> <html><head></head><body>
<h2>You are running an old version of the Discourse image.</h2> <h2>You are running an old version of the Discourse image.</h2>
<p> <p>
@ -38,6 +38,8 @@ module DockerManager
</body> </body>
</html> </html>
HTML HTML
render html: message.html_safe
else else
render render
end end