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:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-07-07 17:53:25 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-07-07 17:53:25 +0300
commitbc3cd44ba71c2843330428ea41b221b6905378ab (patch)
tree06a757ae787ea2223ec070abe5d502a5ba9b7e35
parentd192f921c17561c82943bc803875ba6bf11fd8ce (diff)
Add download button to project page
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
-rw-r--r--app/views/projects/_home_panel.html.haml4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/views/projects/_home_panel.html.haml b/app/views/projects/_home_panel.html.haml
index d100a1586e4..7e2860128f8 100644
--- a/app/views/projects/_home_panel.html.haml
+++ b/app/views/projects/_home_panel.html.haml
@@ -33,5 +33,9 @@
= icon("code-fork fw")
Forked from
= forked_from_project.namespace.try(:name)
+ - if can? current_user, :download_code, @project
+ .inline.prepend-left-10
+ = link_to archive_namespace_project_repository_path(@project.namespace, @project, ref: @ref, format: 'zip'), class: 'btn', rel: 'nofollow' do
+ %i.fa.fa-download
= render "shared/clone_panel"