diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2015-12-21 12:53:31 +0100 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-01-14 12:48:13 +0100 |
commit | 5a1faf61f6d8bdbdde1842db8cf13521287ed168 (patch) | |
tree | f77442f8469a924ec332506f98292c89da96e47b /app/views | |
parent | 37b2c5dd5521f25a7195e82538a0ffc528c3ec6d (diff) | |
download | gitlab-ce-5a1faf61f6d8bdbdde1842db8cf13521287ed168.tar.gz |
Add artifacts browser
This implementation makes it possible to browse artifacts, it
depends on artifacts metadata.
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/projects/artifacts/_tree_directory.html.haml | 5 | ||||
-rw-r--r-- | app/views/projects/artifacts/_tree_file.html.haml | 5 | ||||
-rw-r--r-- | app/views/projects/artifacts/browse.html.haml | 4 |
3 files changed, 13 insertions, 1 deletions
diff --git a/app/views/projects/artifacts/_tree_directory.html.haml b/app/views/projects/artifacts/_tree_directory.html.haml new file mode 100644 index 00000000000..a53001567c3 --- /dev/null +++ b/app/views/projects/artifacts/_tree_directory.html.haml @@ -0,0 +1,5 @@ +%tr{ class: 'tree-item' } + %td.tree-item-file-name + = 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) 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..ad42162b50a --- /dev/null +++ b/app/views/projects/artifacts/_tree_file.html.haml @@ -0,0 +1,5 @@ +%tr{ class: 'tree-item' } + %td.tree-item-file-name + = tree_icon('file', '664', file.basename) + %span.str-truncated + = file.basename diff --git a/app/views/projects/artifacts/browse.html.haml b/app/views/projects/artifacts/browse.html.haml index bb669ac8ba1..6dae7a9efa6 100644 --- a/app/views/projects/artifacts/browse.html.haml +++ b/app/views/projects/artifacts/browse.html.haml @@ -1,4 +1,6 @@ - page_title "#{@build.name} (##{@build.id})", 'Build artifacts' - header_title project_title(@project, "Build artifacts", namespace_project_build_path(@project.namespace, @project, @build)) -= @metadata.inspect +%table.table.table-hover + = render partial: 'tree_directory', collection: @path.directories, as: :directory + = render partial: 'tree_file', collection: @path.files, as: :file |