summaryrefslogtreecommitdiff
path: root/app/views/search/results/_blob.html.haml
blob: 6f0a0ea36ec69cf1f469f6ef5646548169549b66 (plain)
1
2
3
4
5
6
7
8
9
10
11
- blob = parse_search_result(blob)
.blob-result
  .file-holder
    .file-title
      - blob_link = namespace_project_blob_path(@project.namespace, @project, tree_join(blob.ref, blob.filename))
      = link_to blob_link do
        %i.fa.fa-file
        %strong
          = blob.filename
    .file-content.code.term
      = render 'shared/file_highlight', blob: blob, first_line_number: blob.startline, blob_link: blob_link