-
- Downloads
There was a problem fetching the pipeline summary.
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.
Showing
- app/assets/javascripts/syntax_highlight.coffee 9 additions, 0 deletionsapp/assets/javascripts/syntax_highlight.coffee
- app/controllers/application_controller.rb 5 additions, 4 deletionsapp/controllers/application_controller.rb
- app/helpers/gitlab_markdown_helper.rb 1 addition, 1 deletionapp/helpers/gitlab_markdown_helper.rb
- app/helpers/preferences_helper.rb 0 additions, 4 deletionsapp/helpers/preferences_helper.rb
- app/views/search/results/_blob.html.haml 1 addition, 1 deletionapp/views/search/results/_blob.html.haml
- app/views/search/results/_snippet_blob.html.haml 1 addition, 1 deletionapp/views/search/results/_snippet_blob.html.haml
- app/views/search/results/_wiki_blob.html.haml 1 addition, 1 deletionapp/views/search/results/_wiki_blob.html.haml
- app/views/shared/_file_highlight.html.haml 1 addition, 1 deletionapp/views/shared/_file_highlight.html.haml
- lib/redcarpet/render/gitlab_html.rb 2 additions, 3 deletionslib/redcarpet/render/gitlab_html.rb
- spec/features/markdown_spec.rb 0 additions, 4 deletionsspec/features/markdown_spec.rb
- spec/helpers/preferences_helper_spec.rb 0 additions, 21 deletionsspec/helpers/preferences_helper_spec.rb
Loading
Please register or sign in to comment