debian-mirror-gitlab/app/views/search/results/_blob.html.haml
2019-12-26 22:10:19 +05:30

7 lines
317 B
Text

- project = find_project_for_result_blob(projects, blob)
- return unless project
- blob = parse_search_result(blob)
- blob_link = project_blob_path(project, tree_join(blob.ref, blob.path))
= render partial: 'search/results/blob_data', locals: { blob: blob, project: project, path: blob.path, blob_link: blob_link }