Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
dd8d2fab
Commit
dd8d2fab
authored
May 22, 2019
by
Annabel Dunstone Gray
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Group download buttons in a .btn-group
parent
bc4a18ec
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
app/views/projects/buttons/_download_links.html.haml
app/views/projects/buttons/_download_links.html.haml
+1
-1
changelogs/unreleased/61880-download-btn-group.yml
changelogs/unreleased/61880-download-btn-group.yml
+5
-0
No files found.
app/views/projects/buttons/_download_links.html.haml
View file @
dd8d2fab
-
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
}
"
changelogs/unreleased/61880-download-btn-group.yml
0 → 100644
View file @
dd8d2fab
---
title
:
Group download buttons into a .btn-group
merge_request
:
author
:
type
:
other
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment