summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorJacob Schatz <jschatz1@gmail.com>2016-03-10 15:20:17 +0000
committerJacob Schatz <jschatz1@gmail.com>2016-03-10 15:20:17 +0000
commit3d4063efa1008d14fb35101916da70aa896887ed (patch)
tree2557290bbed6a128c4af62604868a7b01d87ccbe /app
parent8179f4fc0cffc81acf0040dddf593b0cd2abde2e (diff)
parent573bbd674b7bc14d50ccfa04aa2af9021f68de2b (diff)
downloadgitlab-ce-3d4063efa1008d14fb35101916da70aa896887ed.tar.gz
Merge branch 'download-button-flicker' into 'master'
Fixed flicker of download project button Closes #14177 ![download-button-flicker](/uploads/21e8ccc68ed66394c8ec65ca549f94ad/download-button-flicker.gif) See merge request !3152
Diffstat (limited to 'app')
-rw-r--r--app/views/projects/buttons/_download.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/buttons/_download.html.haml b/app/views/projects/buttons/_download.html.haml
index 14ee2263b7d..6a60cfeff76 100644
--- a/app/views/projects/buttons/_download.html.haml
+++ b/app/views/projects/buttons/_download.html.haml
@@ -1,4 +1,4 @@
- unless @project.empty_repo?
- if can? current_user, :download_code, @project
- = link_to archive_namespace_project_repository_path(@project.namespace, @project, ref: @ref, format: 'zip'), class: 'btn has_tooltip', rel: 'nofollow', title: "Download ZIP" do
+ = link_to archive_namespace_project_repository_path(@project.namespace, @project, ref: @ref, format: 'zip'), class: 'btn has_tooltip', data: {container: "body"}, rel: 'nofollow', title: "Download ZIP" do
= icon('download')