%tr{ class: 'tree-item' }
  %td.tree-item-file-name
    = tree_icon('file', '664', file.name)
    %span.str-truncated
      = file.name
  %td
    = number_to_human_size(file.metadata[:size], precision: 2)
  %td
    = link_to '', class: 'btn btn-xs btn-default' do
      = icon('download')

%tr{ class: 'tree-item' }
  %td.tree-item-file-name
    = tree_icon('file', '664', file.name)
    %span.str-truncated
      = file.name
  %td
    = number_to_human_size(file.metadata[:size], precision: 2)
  %td
    = link_to file_namespace_project_build_artifacts_path(path: file.path),
      class: 'btn btn-xs btn-default' do
      = icon('download')

Attach download action to artifacts file in ZIP archive
Attach download action to artifacts file in ZIP archive
