diff options
author | Brett Walker <bwalker@gitlab.com> | 2018-09-04 16:42:23 +0300 |
---|---|---|
committer | Brett Walker <bwalker@gitlab.com> | 2018-09-05 17:19:16 +0300 |
commit | 589776fc2e421df12c2526f9cf8cd7f3f239a21f (patch) | |
tree | 932f66852aac6362cae5075ef8878cf160ddd19a /app/views/search | |
parent | a963721f797b451efec15702e73752c8b8830631 (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.haml | 3 |
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 |