Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrett Walker <bwalker@gitlab.com>2018-09-04 16:42:23 +0300
committerBrett Walker <bwalker@gitlab.com>2018-09-05 17:19:16 +0300
commit589776fc2e421df12c2526f9cf8cd7f3f239a21f (patch)
tree932f66852aac6362cae5075ef8878cf160ddd19a /app/views/search
parenta963721f797b451efec15702e73752c8b8830631 (diff)
move logic into legacy_render_context helper method
Diffstat (limited to 'app/views/search')
-rw-r--r--app/views/search/results/_snippet_blob.html.haml3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/views/search/results/_snippet_blob.html.haml b/app/views/search/results/_snippet_blob.html.haml
index 6527d70134e..8b95bdf9747 100644
--- a/app/views/search/results/_snippet_blob.html.haml
+++ b/app/views/search/results/_snippet_blob.html.haml
@@ -21,8 +21,7 @@
.file-content.wiki
- snippet_chunks.each do |chunk|
- unless chunk[:data].empty?
- - context = params[:legacy_render] ? { markdown_engine: :redcarpet} : {}
- = markup(snippet.file_name, chunk[:data], context)
+ = markup(snippet.file_name, chunk[:data], legacy_render_context(params))
- else
.file-content.code
.nothing-here-block Empty file