gitlab-org--gitlab-foss/app/views/search/results/_blob.html.haml

8 lines
323 B
Text
Raw Normal View History

2018-06-04 07:41:37 -04:00
- project = find_project_for_result_blob(blob)
- return unless project
2018-06-04 07:41:37 -04:00
- 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 }