diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2015-12-21 14:50:03 +0100 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-01-14 12:48:13 +0100 |
commit | aae674c3a2bbe3e3c2303be0174fda785abb11d4 (patch) | |
tree | 80cbfddee3b7c751a3489851008a82d771b6eb28 /app/views/projects/artifacts | |
parent | 5a1faf61f6d8bdbdde1842db8cf13521287ed168 (diff) | |
download | gitlab-ce-aae674c3a2bbe3e3c2303be0174fda785abb11d4.tar.gz |
Improve CI build artifacts browser view
Diffstat (limited to 'app/views/projects/artifacts')
-rw-r--r-- | app/views/projects/artifacts/_tree_directory.html.haml | 1 | ||||
-rw-r--r-- | app/views/projects/artifacts/_tree_file.html.haml | 3 | ||||
-rw-r--r-- | app/views/projects/artifacts/browse.html.haml | 20 |
3 files changed, 21 insertions, 3 deletions
diff --git a/app/views/projects/artifacts/_tree_directory.html.haml b/app/views/projects/artifacts/_tree_directory.html.haml index a53001567c3..ec68c45865e 100644 --- a/app/views/projects/artifacts/_tree_directory.html.haml +++ b/app/views/projects/artifacts/_tree_directory.html.haml @@ -3,3 +3,4 @@ = tree_icon('folder', '755', directory.basename) %span.str-truncated = link_to directory.basename, browse_namespace_project_build_artifacts_path(@project.namespace, @project, @build, path: directory.path) + %td diff --git a/app/views/projects/artifacts/_tree_file.html.haml b/app/views/projects/artifacts/_tree_file.html.haml index ad42162b50a..ff30acc2957 100644 --- a/app/views/projects/artifacts/_tree_file.html.haml +++ b/app/views/projects/artifacts/_tree_file.html.haml @@ -3,3 +3,6 @@ = tree_icon('file', '664', file.basename) %span.str-truncated = file.basename + %td + = link_to '', class: 'btn btn-xs btn-default' do + = icon('download') diff --git a/app/views/projects/artifacts/browse.html.haml b/app/views/projects/artifacts/browse.html.haml index 6dae7a9efa6..ddca02d2bed 100644 --- a/app/views/projects/artifacts/browse.html.haml +++ b/app/views/projects/artifacts/browse.html.haml @@ -1,6 +1,20 @@ - page_title "#{@build.name} (##{@build.id})", 'Build artifacts' - header_title project_title(@project, "Build artifacts", namespace_project_build_path(@project.namespace, @project, @build)) -%table.table.table-hover - = render partial: 'tree_directory', collection: @path.directories, as: :directory - = render partial: 'tree_file', collection: @path.files, as: :file +#tree-holder.tree-holder + .gray-content-block.top-block.clearfix + .pull-right + = link_to download_namespace_project_build_artifacts_path(@project.namespace, @project, @build), + class: 'btn btn-default', method: :get do + = icon('download') + Download artifacts archive + +%div.tree-content-holder + .table-holder + %table.table.tree-table.table-striped + %thead + %tr + %th Name + %th Download + = render partial: 'tree_directory', collection: @path.directories, as: :directory + = render partial: 'tree_file', collection: @path.files, as: :file |