summaryrefslogtreecommitdiff
path: root/app/views/projects/artifacts/_tree_file.html.haml
blob: 3dfc09cc495b5abffcf9621033f53f70bfcde16b (plain)
1
2
3
4
5
6
7
8
9
10
11
- path_to_file = file_namespace_project_build_artifacts_path(@project.namespace, @project, @build, path: file.path)

%tr.tree-item{ 'data-link' => path_to_file }
  %td.tree-item-file-name
    = tree_icon('file', '664', file.name)
    %span.str-truncated
      = link_to file.name, path_to_file
  %td
    = number_to_human_size(file.metadata[:size], precision: 2)
  %td
    = number_to_human_size(file.metadata[:zipped], precision: 2)