diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-01-13 23:17:28 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-01-14 14:48:17 +0300 |
commit | 6b0a43aff36f0bbb9050b3c04155a3ccd9c1a75b (patch) | |
tree | fbe82328b917aacf19f2da12e77a6d4489f0a51a /app/views/projects/artifacts | |
parent | 154b8ceba4ac2d92a2387ad50d7f2b4ed5b2dd8a (diff) |
Improve readability of artifacts browser `Entry` related code
Diffstat (limited to 'app/views/projects/artifacts')
-rw-r--r-- | app/views/projects/artifacts/browse.html.haml | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/app/views/projects/artifacts/browse.html.haml b/app/views/projects/artifacts/browse.html.haml index fc161be2ffc..1add7ef6bfb 100644 --- a/app/views/projects/artifacts/browse.html.haml +++ b/app/views/projects/artifacts/browse.html.haml @@ -1,11 +1,11 @@ -- page_title "#{@build.name} (##{@build.id})", 'Build artifacts' -- header_title project_title(@project, "Build artifacts", namespace_project_build_path(@project.namespace, @project, @build)) +- page_title 'Artifacts', "#{@build.name} (##{@build.id})", 'Builds' += render 'projects/builds/header_title' #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 + class: 'btn btn-default' do = icon('download') Download artifacts archive @@ -17,8 +17,8 @@ %th Name %th Size %th Download - = render partial: 'tree_directory', collection: @path.directories!, as: :directory - = render partial: 'tree_file', collection: @path.files, as: :file + = render partial: 'tree_directory', collection: @entry.directories(parent: true), as: :directory + = render partial: 'tree_file', collection: @entry.files, as: :file -- if @path.children.empty? +- if @entry.empty? .center Empty |