summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-04-04 10:03:42 +0200
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-04-06 19:56:34 +0200
commitdffdb0d036d037dc4b6a363aa73e581270fc7c80 (patch)
tree76d8fa710db1e3dbe422b8009ba1b7be8aac580b /app
parent58d63a66a084fc38ffcd72972afa388110e29fc1 (diff)
downloadgitlab-ce-dffdb0d036d037dc4b6a363aa73e581270fc7c80.tar.gz
Use highlight helper to render badges code syntax
Diffstat (limited to 'app')
-rw-r--r--app/views/projects/badges/index.html.haml8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/views/projects/badges/index.html.haml b/app/views/projects/badges/index.html.haml
index 52e68ea7080..b6524153703 100644
--- a/app/views/projects/badges/index.html.haml
+++ b/app/views/projects/badges/index.html.haml
@@ -9,12 +9,12 @@
.row
.col-md-2.text-center
Markdown
- .col-md-10
- = markdown("```markdown\n#{@badge.to_markdown}\n```")
+ .col-md-10.code.js-syntax-highlight
+ = highlight('.md', @badge.to_markdown)
.row
%hr
.row
.col-md-2.text-center
HTML
- .col-md-10
- = markdown("```html\n#{@badge.to_html}\n```")
+ .col-md-10.code.js-syntax-highlight
+ = highlight('.html', @badge.to_html)