summaryrefslogtreecommitdiff
path: root/app/views/projects/artifacts/browse.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/projects/artifacts/browse.html.haml')
-rw-r--r--app/views/projects/artifacts/browse.html.haml22
1 files changed, 22 insertions, 0 deletions
diff --git a/app/views/projects/artifacts/browse.html.haml b/app/views/projects/artifacts/browse.html.haml
new file mode 100644
index 00000000000..84034c8bf16
--- /dev/null
+++ b/app/views/projects/artifacts/browse.html.haml
@@ -0,0 +1,22 @@
+- page_title 'Artifacts', "#{@build.name} (##{@build.id})", 'Builds'
+= render 'projects/builds/header_title'
+
+.top-block.gray-content-block.clearfix
+ .pull-right
+ = link_to download_namespace_project_build_artifacts_path(@project.namespace, @project, @build),
+ class: 'btn btn-default download' do
+ = icon('download')
+ Download artifacts archive
+
+.tree-holder
+ %div.tree-content-holder
+ %table.table.tree-table
+ %thead
+ %tr
+ %th Name
+ %th Size
+ = render partial: 'tree_directory', collection: @entry.directories(parent: true), as: :directory
+ = render partial: 'tree_file', collection: @entry.files, as: :file
+
+- if @entry.empty?
+ .center Empty