debian-mirror-gitlab/app/views/projects/artifacts/_tree_file.html.haml

11 lines
348 B
Text
Raw Normal View History

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
%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
%td
2017-08-17 22:00:37 +05:30
= number_to_human_size(blob.size, precision: 2)