Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-01-13 23:17:28 +0300
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-01-14 14:48:17 +0300
commit6b0a43aff36f0bbb9050b3c04155a3ccd9c1a75b (patch)
treefbe82328b917aacf19f2da12e77a6d4489f0a51a /app/views/projects/artifacts
parent154b8ceba4ac2d92a2387ad50d7f2b4ed5b2dd8a (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.haml12
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