2018-03-17 18:26:18 +05:30
|
|
|
- blob = file.blob
|
|
|
|
- external_link = blob.external_link?(@build)
|
2022-11-25 23:54:43 +05:30
|
|
|
- if external_link
|
|
|
|
- path_to_file = external_file_project_job_artifacts_path(@project, @build, path: file.path)
|
|
|
|
- else
|
|
|
|
- path_to_file = file_project_job_artifacts_path(@project, @build, path: file.path)
|
2016-01-29 22:53:50 +05:30
|
|
|
|
2018-03-17 18:26:18 +05:30
|
|
|
%tr.tree-item.js-artifact-tree-row{ data: { link: path_to_file, external_link: "#{external_link}" } }
|
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)
|
2018-03-17 18:26:18 +05:30
|
|
|
- if external_link
|
2022-11-25 23:54:43 +05:30
|
|
|
= link_to path_to_file, class: 'tree-item-file-external-link js-artifact-tree-tooltip str-truncated' do
|
2018-03-17 18:26:18 +05:30
|
|
|
%span>= blob.name
|
2021-01-29 00:20:46 +05:30
|
|
|
= sprite_icon('external-link', css_class: 'js-artifact-tree-external-icon')
|
2018-03-17 18:26:18 +05:30
|
|
|
- else
|
|
|
|
= link_to path_to_file, class: 'str-truncated' do
|
|
|
|
%span= blob.name
|
2016-01-19 16:12:03 +05:30
|
|
|
%td
|
2019-03-02 22:35:43 +05:30
|
|
|
= number_to_human_size(blob.size)
|