debian-mirror-gitlab/app/views/projects/artifacts/_tree_file.html.haml
2017-09-10 17:25:29 +05:30

10 lines
348 B
Text

- path_to_file = file_project_job_artifacts_path(@project, @build, path: file.path)
%tr.tree-item{ 'data-link' => path_to_file }
- blob = file.blob
%td.tree-item-file-name
= tree_icon('file', blob.mode, blob.name)
= link_to path_to_file do
%span.str-truncated= blob.name
%td
= number_to_human_size(blob.size, precision: 2)