summaryrefslogtreecommitdiff
path: root/app/views/projects/blob
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2016-01-25 11:42:47 +0100
committerDouwe Maan <douwe@selenight.nl>2016-01-25 11:42:47 +0100
commit40d2daed89f598e0b869bdc09bf47d4defe1c5f0 (patch)
tree34476409922fbf4ccf2c6405ffd622e9172a93fb /app/views/projects/blob
parent0f2a906211dcbf4978b465d342521dda14ade729 (diff)
downloadgitlab-ce-40d2daed89f598e0b869bdc09bf47d4defe1c5f0.tar.gz
Highlight note code and edit previewnote-highlighting
Diffstat (limited to 'app/views/projects/blob')
-rw-r--r--app/views/projects/blob/_text.html.haml8
-rw-r--r--app/views/projects/blob/preview.html.haml2
2 files changed, 5 insertions, 5 deletions
diff --git a/app/views/projects/blob/_text.html.haml b/app/views/projects/blob/_text.html.haml
index 4429c395aee..906e5ccb360 100644
--- a/app/views/projects/blob/_text.html.haml
+++ b/app/views/projects/blob/_text.html.haml
@@ -2,8 +2,8 @@
.file-content.wiki
= render_markup(blob.name, blob.data)
- else
- .file-content.code
- - unless blob.empty?
- = render 'shared/file_highlight', blob: blob
- - else
+ - unless blob.empty?
+ = render 'shared/file_highlight', blob: blob
+ - else
+ .file-content.code
.nothing-here-block Empty file
diff --git a/app/views/projects/blob/preview.html.haml b/app/views/projects/blob/preview.html.haml
index c5a269f334c..541dc96c45f 100644
--- a/app/views/projects/blob/preview.html.haml
+++ b/app/views/projects/blob/preview.html.haml
@@ -8,7 +8,7 @@
.file-content.wiki
= raw render_markup(@blob.name, @content)
- else
- .file-content.code
+ .file-content.code.js-syntax-highlight
- unless @diff_lines.empty?
%table.text-file
- @diff_lines.each do |line|