diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2015-05-13 01:54:13 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2015-05-18 22:52:13 +0200 |
commit | b0659c1b072267e0e1fa3066ca1a8cc17bc8f6c0 (patch) | |
tree | 54701d5d517061602ff5ac58512268f4c18a105a /app/views/search | |
parent | daa0925016a63dcde448643cbf1310aca359cf37 (diff) | |
download | gitlab-ce-b0659c1b072267e0e1fa3066ca1a8cc17bc8f6c0.tar.gz |
Simplify and unify helpers for rendering markup
Diffstat (limited to 'app/views/search')
-rw-r--r-- | app/views/search/results/_snippet_blob.html.haml | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/app/views/search/results/_snippet_blob.html.haml b/app/views/search/results/_snippet_blob.html.haml index 8af393777f0..95099853918 100644 --- a/app/views/search/results/_snippet_blob.html.haml +++ b/app/views/search/results/_snippet_blob.html.haml @@ -13,16 +13,7 @@ .file-title %i.fa.fa-file %strong= snippet_blob[:snippet_object].file_name - - if gitlab_markdown?(snippet_blob[:snippet_object].file_name) - .file-content.wiki - - snippet_blob[:snippet_chunks].each do |snippet| - - unless snippet[:data].empty? - = preserve do - = markdown(snippet[:data]) - - else - .file-content.code - .nothing-here-block Empty file - - elsif markup?(snippet_blob[:snippet_object].file_name) + - if markup?(snippet_blob[:snippet_object].file_name) .file-content.wiki - snippet_blob[:snippet_chunks].each do |snippet| - unless snippet[:data].empty? |