summaryrefslogtreecommitdiff
path: root/app/views/projects/artifacts/_tree_file.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/projects/artifacts/_tree_file.html.haml')
-rw-r--r--app/views/projects/artifacts/_tree_file.html.haml11
1 files changed, 11 insertions, 0 deletions
diff --git a/app/views/projects/artifacts/_tree_file.html.haml b/app/views/projects/artifacts/_tree_file.html.haml
new file mode 100644
index 00000000000..92c1648f726
--- /dev/null
+++ b/app/views/projects/artifacts/_tree_file.html.haml
@@ -0,0 +1,11 @@
+%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(@project.namespace, @project, @build, path: file.path),
+ class: 'btn btn-xs btn-default artifact-download' do
+ = icon('download')