BigW Consortium Gitlab

_blob.html.haml 476 Bytes
Newer Older
1
- file_name, blob = blob
2
.blob-result
3
  .file-holder
4
    .js-file-title.file-title
5 6
      - ref = @search_results.repository_ref
      - blob_link = namespace_project_blob_path(@project.namespace, @project, tree_join(ref, file_name))
barthc committed
7
      = link_to blob_link do
8
        %i.fa.fa-file
9
        %strong
10 11 12 13
          = file_name
    - if blob
      .file-content.code.term
        = render 'shared/file_highlight', blob: blob, first_line_number: blob.startline, blob_link: blob_link