debian-mirror-gitlab/app/views/search/results/_blob.html.haml
2022-01-26 12:08:38 +05:30

6 lines
378 B
Text

- project = blob.project
- return unless project
- blob_link = project_blob_path(project, tree_join(repository_ref(project), blob.path))
- blame_link = project_blame_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, blame_link: blame_link }