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
e052d49a
Commit
e052d49a
authored
Apr 16, 2019
by
Nick Thomas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix styling issues with the download dropdown
parent
4d52131d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
26 deletions
+23
-26
app/assets/stylesheets/framework/dropdowns.scss
app/assets/stylesheets/framework/dropdowns.scss
+1
-1
app/views/projects/buttons/_download.html.haml
app/views/projects/buttons/_download.html.haml
+17
-16
app/views/projects/buttons/_download_links.html.haml
app/views/projects/buttons/_download_links.html.haml
+5
-9
No files found.
app/assets/stylesheets/framework/dropdowns.scss
View file @
e052d49a
...
...
@@ -287,7 +287,7 @@
list-style
:
none
;
padding
:
0
1px
;
a
:not
(
.btn
)
,
a
,
button
,
.menu-item
{
@include
dropdown-link
;
...
...
app/views/projects/buttons/_download.html.haml
View file @
e052d49a
...
...
@@ -7,21 +7,22 @@
=
sprite_icon
(
'download'
)
%span
.sr-only
=
_
(
'Select Archive Format'
)
=
sprite_icon
(
"arrow-down"
)
%ul
.dropdown-menu.dropdown-menu-right
{
role:
'menu'
}
%li
.dropdown-bold-header
=
_
(
'Download source code'
)
%li
.dropdown-menu-content
.dropdown-menu.dropdown-menu-right
{
role:
'menu'
}
%section
%h5
.m-0.dropdown-bold-header
=
_
(
'Download source code'
)
.dropdown-menu-content
=
render
'projects/buttons/download_links'
,
project:
project
,
ref:
ref
,
archive_prefix:
archive_prefix
,
path:
nil
-
if
directory?
&&
Feature
.
enabled?
(
:git_archive_path
,
default_enabled:
true
)
%
li
.separator
%li
.dropdown-bold-header
=
_
(
'Download this directory'
)
%li
.dropdown-menu-content
%
section
.border-top.pt-1.mt-1
%h5
.m-0
.dropdown-bold-header
=
_
(
'Download this directory'
)
.dropdown-menu-content
=
render
'projects/buttons/download_links'
,
project:
project
,
ref:
ref
,
archive_prefix:
archive_prefix
,
path:
@path
-
if
pipeline
&&
pipeline
.
latest_builds_with_artifacts
.
any?
%
li
.separator
%li
.dropdown-bold-header
=
_
(
'Download artifacts'
)
%
section
.border-top.pt-1.mt-1
%h5
.m-0
.dropdown-bold-header
=
_
(
'Download artifacts'
)
-
unless
pipeline
.
latest?
%span
.unclickable
=
ci_status_for_statuseable
(
project
.
pipeline_for
(
ref
))
%li
.dropdown-header
=
_
(
'Previous Artifacts'
)
%h6
.m-0.dropdown-header
=
_
(
'Previous Artifacts'
)
%ul
-
pipeline
.
latest_builds_with_artifacts
.
each
do
|
job
|
%li
=
link_to
job
.
name
,
latest_succeeded_project_artifacts_path
(
project
,
"
#{
ref
}
/download"
,
job:
job
.
name
),
rel:
'nofollow'
,
download:
''
%li
=
link_to
job
.
name
,
latest_succeeded_project_artifacts_path
(
project
,
"
#{
ref
}
/download"
,
job:
job
.
name
),
rel:
'nofollow'
,
download:
''
app/views/projects/buttons/_download_links.html.haml
View file @
e052d49a
%ul
%li
.d-inline-block.m-0.p-0
=
link_to
'zip'
,
project_archive_path
(
project
,
id:
tree_join
(
ref
,
archive_prefix
),
path:
path
,
format:
'zip'
),
rel:
'nofollow'
,
download:
''
,
class:
'btn btn-primary btn-xs'
%li
.d-inline-block.m-0.p-0
=
link_to
'tar.gz'
,
project_archive_path
(
project
,
id:
tree_join
(
ref
,
archive_prefix
),
path:
path
,
format:
'tar.gz'
),
rel:
'nofollow'
,
download:
''
,
class:
'btn btn-xs'
%li
.d-inline-block.m-0.p-0
=
link_to
'tar.bz2'
,
project_archive_path
(
project
,
id:
tree_join
(
ref
,
archive_prefix
),
path:
path
,
format:
'tar.bz2'
),
rel:
'nofollow'
,
download:
''
,
class:
'btn btn-xs'
%li
.d-inline-block.m-0.p-0
=
link_to
'tar'
,
project_archive_path
(
project
,
id:
tree_join
(
ref
,
archive_prefix
),
path:
path
,
format:
'tar'
),
rel:
'nofollow'
,
download:
''
,
class:
'btn btn-xs'
-
formats
=
[[
'zip'
,
'btn-primary'
],
[
'tar.gz'
],
[
'tar.bz2'
],
[
'tar'
]]
.d-flex.justify-content-between
-
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
}
"
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