summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Karpiak <philip@eswat.ca>2016-11-10 10:07:27 -0500
committerPhilip Karpiak <philip@eswat.ca>2016-11-10 10:14:36 -0500
commitd9a0682d891e26a8ad0e5eb1a1b9b41d15fb5b27 (patch)
treefa6c5a785517aac55b1c999f5deec3a37a6e7679
parent0c99e5d0b6b457ef7db2c36f1394fad5c63d1142 (diff)
downloadgitlab-ce-d9a0682d891e26a8ad0e5eb1a1b9b41d15fb5b27.tar.gz
Project download buttons always show
This was hidden when the viewport was was below the 'hidden-sm' theshold. Now it displays the same as the rest of the 'project-repo-buttons' block.
-rw-r--r--app/views/projects/buttons/_download.html.haml2
-rw-r--r--changelogs/unreleased/always-show-download-button.yml4
2 files changed, 5 insertions, 1 deletions
diff --git a/app/views/projects/buttons/_download.html.haml b/app/views/projects/buttons/_download.html.haml
index 7e83a88913a..7b995bd8735 100644
--- a/app/views/projects/buttons/_download.html.haml
+++ b/app/views/projects/buttons/_download.html.haml
@@ -1,5 +1,5 @@
- if !project.empty_repo? && can?(current_user, :download_code, project)
- %span{class: 'hidden-xs hidden-sm download-button'}
+ %span{class: 'download-button'}
.dropdown.inline
%button.btn{ 'data-toggle' => 'dropdown' }
= icon('download')
diff --git a/changelogs/unreleased/always-show-download-button.yml b/changelogs/unreleased/always-show-download-button.yml
new file mode 100644
index 00000000000..3a625834d01
--- /dev/null
+++ b/changelogs/unreleased/always-show-download-button.yml
@@ -0,0 +1,4 @@
+---
+title: Project download buttons always show
+merge_request: 7405
+author: Philip Karpiak