diff options
author | Francisco Javier López <fjlopez@gitlab.com> | 2018-06-04 11:41:37 +0000 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2018-06-04 11:41:37 +0000 |
commit | 7350eb1fa83662d4aaa7541acb387b3742ba9788 (patch) | |
tree | 881a23cd8807f2247707c875bc1be1502ff04ace /app/views/search/results/_blob.html.haml | |
parent | 0b4f9ff4068af6776b495d9332aeecf58e48786f (diff) | |
download | gitlab-ce-7350eb1fa83662d4aaa7541acb387b3742ba9788.tar.gz |
Add ability to search wiki titles
Diffstat (limited to 'app/views/search/results/_blob.html.haml')
-rw-r--r-- | app/views/search/results/_blob.html.haml | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/app/views/search/results/_blob.html.haml b/app/views/search/results/_blob.html.haml index de473c23d66..fdcd126e7a3 100644 --- a/app/views/search/results/_blob.html.haml +++ b/app/views/search/results/_blob.html.haml @@ -1,13 +1,5 @@ -- file_name, blob = blob -.blob-result - .file-holder - .js-file-title.file-title - - ref = @search_results.repository_ref - - blob_link = project_blob_path(@project, tree_join(ref, file_name)) - = link_to blob_link do - %i.fa.fa-file - %strong - = file_name - - if blob - .file-content.code.term - = render 'shared/file_highlight', blob: blob, first_line_number: blob.startline, blob_link: blob_link +- project = find_project_for_result_blob(blob) +- file_name, blob = parse_search_result(blob) +- blob_link = project_blob_path(project, tree_join(blob.ref, file_name)) + += render partial: 'search/results/blob_data', locals: { blob: blob, project: project, file_name: file_name, blob_link: blob_link } |