summaryrefslogtreecommitdiff
path: root/app/views/shared
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2015-08-25 15:24:53 -0700
committerRobert Speicher <rspeicher@gmail.com>2015-08-25 15:32:38 -0700
commit2c3e42e4a44e2f40e521cbafc8144e5d7c366b76 (patch)
tree805e249cd96c5cb968cbedd096061beab081b3aa /app/views/shared
parent59180c4f5a553938ee79968e7983aee6ce584ff5 (diff)
downloadgitlab-ce-2c3e42e4a44e2f40e521cbafc8144e5d7c366b76.tar.gz
Remove user_color_scheme_class
Instead of rendering this value server-side, we use Javascript and Gon to apply the user's color scheme (or the default) to any syntax highlighted code blocks. This will make it easier to cache these blocks in the future because they're no longer state-dependent.
Diffstat (limited to 'app/views/shared')
-rw-r--r--app/views/shared/_file_highlight.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/shared/_file_highlight.html.haml b/app/views/shared/_file_highlight.html.haml
index d6a2e177da1..7b1c624d769 100644
--- a/app/views/shared/_file_highlight.html.haml
+++ b/app/views/shared/_file_highlight.html.haml
@@ -1,4 +1,4 @@
-.file-content.code{class: user_color_scheme_class}
+.file-content.code.js-syntax-highlight
.line-numbers
- if blob.data.present?
- blob.data.lines.each_index do |index|