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-11 13:07:41 +0300
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-01-14 14:48:16 +0300
commit94cf75900181f1d73840f4306ee1a1a157800744 (patch)
tree4af3e26c92a23aa8b0097ce3383e11cdcabc9daf
parente9c2628220ed3a9d82cba31e7c9d2654c20235c8 (diff)
Attach download action to artifacts file in ZIP archive
-rw-r--r--app/views/projects/artifacts/_tree_file.html.haml3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/views/projects/artifacts/_tree_file.html.haml b/app/views/projects/artifacts/_tree_file.html.haml
index 11ced45fe14..881a844a02d 100644
--- a/app/views/projects/artifacts/_tree_file.html.haml
+++ b/app/views/projects/artifacts/_tree_file.html.haml
@@ -6,5 +6,6 @@
%td
= number_to_human_size(file.metadata[:size], precision: 2)
%td
- = link_to '', class: 'btn btn-xs btn-default' do
+ = link_to file_namespace_project_build_artifacts_path(path: file.path),
+ class: 'btn btn-xs btn-default' do
= icon('download')