debian-mirror-gitlab/app/views/search/results/_blob.html.haml
2023-05-27 22:25:52 +05:30

8 lines
463 B
Text

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