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

5 lines
264 B
Text

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