summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2019-05-23 13:53:25 +0000
committerPhil Hughes <me@iamphill.com>2019-05-23 13:53:25 +0000
commit2cde6864d1c94e1000853d52170380114775165f (patch)
tree4f270e33cda9825e250b54936d52b3889a58d145
parentefdca2e6b41f5c05a026cc583646b13555e63986 (diff)
parentdd8d2fabd3bc5fcbff3f12fae37f8914098bf5cd (diff)
downloadgitlab-ce-2cde6864d1c94e1000853d52170380114775165f.tar.gz
Merge branch '61880-download-btn-group' into 'master'
Group download buttons in a .btn-group Closes #61880 See merge request gitlab-org/gitlab-ce!28599
-rw-r--r--app/views/projects/buttons/_download_links.html.haml2
-rw-r--r--changelogs/unreleased/61880-download-btn-group.yml5
2 files changed, 6 insertions, 1 deletions
diff --git a/app/views/projects/buttons/_download_links.html.haml b/app/views/projects/buttons/_download_links.html.haml
index 7f2cd8e109e..d344167a6c5 100644
--- a/app/views/projects/buttons/_download_links.html.haml
+++ b/app/views/projects/buttons/_download_links.html.haml
@@ -1,5 +1,5 @@
- formats = [['zip', 'btn-primary'], ['tar.gz'], ['tar.bz2'], ['tar']]
-.d-flex.justify-content-between
+.btn-group.ml-0.w-100
- formats.each do |(fmt, extra_class)|
= link_to fmt, project_archive_path(project, id: tree_join(ref, archive_prefix), path: path, format: fmt), rel: 'nofollow', download: '', class: "btn btn-xs #{extra_class}"
diff --git a/changelogs/unreleased/61880-download-btn-group.yml b/changelogs/unreleased/61880-download-btn-group.yml
new file mode 100644
index 00000000000..c1f6b2767c6
--- /dev/null
+++ b/changelogs/unreleased/61880-download-btn-group.yml
@@ -0,0 +1,5 @@
+---
+title: Group download buttons into a .btn-group
+merge_request:
+author:
+type: other