2017-09-10 17:25:29 +05:30
|
|
|
- path_to_file = file_project_job_artifacts_path(@project, @build, path: file.path)
|
2016-01-29 22:53:50 +05:30
|
|
|
|
|
|
|
%tr.tree-item{ 'data-link' => path_to_file }
|
2017-08-17 22:00:37 +05:30
|
|
|
- blob = file.blob
|
2016-01-19 16:12:03 +05:30
|
|
|
%td.tree-item-file-name
|
2017-08-17 22:00:37 +05:30
|
|
|
= tree_icon('file', blob.mode, blob.name)
|
|
|
|
= link_to path_to_file do
|
|
|
|
%span.str-truncated= blob.name
|
2016-01-19 16:12:03 +05:30
|
|
|
%td
|
2017-08-17 22:00:37 +05:30
|
|
|
= number_to_human_size(blob.size, precision: 2)
|