Commit fa45f8e4 authored by Patrick Bajao's avatar Patrick Bajao

Use existing classes for display inline content

parent 3c2d5595
......@@ -355,12 +355,6 @@
.dropdown-menu-content {
padding: $dropdown-item-padding-y $dropdown-item-padding-x;
}
.inline-content {
display: inline-block;
margin: 0;
padding: 0;
}
}
.droplab-dropdown {
......
......@@ -11,26 +11,26 @@
%li.dropdown-bold-header= _('Download source code')
%li.dropdown-menu-content
%ul
%li.inline-content
%li.d-inline-block.m-0.p-0
= link_to _('zip'), project_archive_path(project, id: tree_join(ref, archive_prefix), format: 'zip'), rel: 'nofollow', download: '', class: 'btn btn-primary btn-xs'
%li.inline-content
%li.d-inline-block.m-0.p-0
= link_to _('tar.gz'), project_archive_path(project, id: tree_join(ref, archive_prefix), format: 'tar.gz'), rel: 'nofollow', download: '', class: 'btn btn-xs'
%li.inline-content
%li.d-inline-block.m-0.p-0
= link_to _('tar.bz2'), project_archive_path(project, id: tree_join(ref, archive_prefix), format: 'tar.bz2'), rel: 'nofollow', download: '', class: 'btn btn-xs'
%li.inline-content
%li.d-inline-block.m-0.p-0
= link_to _('tar'), project_archive_path(project, id: tree_join(ref, archive_prefix), format: 'tar'), rel: 'nofollow', download: '', class: 'btn btn-xs'
- if directory?
%li.separator
%li.dropdown-bold-header= _('Download this directory')
%li.dropdown-menu-content
%ul
%li.inline-content
%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.inline-content
%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.inline-content
%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.inline-content
%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'
- if pipeline && pipeline.latest_builds_with_artifacts.any?
%li.separator
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment