Styles for file list change.
New download btn WIP.
This commit is contained in:
parent
9ae820ad2e
commit
a14089485f
4 changed files with 36 additions and 37 deletions
|
@ -191,3 +191,7 @@
|
|||
@include btn-green
|
||||
}
|
||||
}
|
||||
|
||||
.btn-icon {
|
||||
|
||||
}
|
|
@ -14,9 +14,15 @@
|
|||
.tree-table {
|
||||
margin-bottom: 0;
|
||||
|
||||
tr:nth-child(odd) {
|
||||
background-color: #F7F9FB;
|
||||
}
|
||||
|
||||
tr {
|
||||
> td, > th {
|
||||
line-height: 26px;
|
||||
border-top: 1px solid #EEF0F2;
|
||||
border-bottom: 1px solid #EEF0F2;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
|
|
|
@ -1,37 +1,27 @@
|
|||
- ref = ref || nil
|
||||
- btn_class = btn_class || ''
|
||||
- split_button = split_button || false
|
||||
- if split_button == true
|
||||
%span.btn-group{class: btn_class}
|
||||
= link_to archive_namespace_project_repository_path(@project.namespace, @project, ref: ref, format: 'zip'), class: 'btn col-xs-10', rel: 'nofollow' do
|
||||
%i.fa.fa-download
|
||||
%span Download zip
|
||||
%a.col-xs-2.btn.dropdown-toggle{ 'data-toggle' => 'dropdown' }
|
||||
%span.caret
|
||||
%span.sr-only
|
||||
Select Archive Format
|
||||
%ul.col-xs-10.dropdown-menu{ role: 'menu' }
|
||||
%li
|
||||
= link_to archive_namespace_project_repository_path(@project.namespace, @project, ref: ref, format: 'zip'), rel: 'nofollow' do
|
||||
%i.fa.fa-download
|
||||
%span Download zip
|
||||
%li
|
||||
= link_to archive_namespace_project_repository_path(@project.namespace, @project, ref: ref, format: 'tar.gz'), rel: 'nofollow' do
|
||||
%i.fa.fa-download
|
||||
%span Download tar.gz
|
||||
%li
|
||||
= link_to archive_namespace_project_repository_path(@project.namespace, @project, ref: ref, format: 'tar.bz2'), rel: 'nofollow' do
|
||||
%i.fa.fa-download
|
||||
%span Download tar.bz2
|
||||
%li
|
||||
= link_to archive_namespace_project_repository_path(@project.namespace, @project, ref: ref, format: 'tar'), rel: 'nofollow' do
|
||||
%i.fa.fa-download
|
||||
%span Download tar
|
||||
- else
|
||||
%span.btn-group{class: btn_class}
|
||||
= link_to archive_namespace_project_repository_path(@project.namespace, @project, ref: ref, format: 'zip'), class: 'btn', rel: 'nofollow' do
|
||||
%i.fa.fa-download
|
||||
%span zip
|
||||
= link_to archive_namespace_project_repository_path(@project.namespace, @project, ref: ref, format: 'tar.gz'), class: 'btn', rel: 'nofollow' do
|
||||
%i.fa.fa-download
|
||||
%span tar.gz
|
||||
|
||||
.btn-group
|
||||
%button.btn.dropdown-toggle{ 'data-toggle' => 'dropdown', class: btn_class }
|
||||
=icon('download')
|
||||
Download
|
||||
%span.caret
|
||||
%span.sr-only
|
||||
Select Archive Format
|
||||
%ul.col-xs-10.dropdown-menu{ role: 'menu' }
|
||||
%li
|
||||
= link_to archive_namespace_project_repository_path(@project.namespace, @project, ref: ref, format: 'zip'), rel: 'nofollow' do
|
||||
%i.fa.fa-download
|
||||
%span Download zip
|
||||
%li
|
||||
= link_to archive_namespace_project_repository_path(@project.namespace, @project, ref: ref, format: 'tar.gz'), rel: 'nofollow' do
|
||||
%i.fa.fa-download
|
||||
%span Download tar.gz
|
||||
%li
|
||||
= link_to archive_namespace_project_repository_path(@project.namespace, @project, ref: ref, format: 'tar.bz2'), rel: 'nofollow' do
|
||||
%i.fa.fa-download
|
||||
%span Download tar.bz2
|
||||
%li
|
||||
= link_to archive_namespace_project_repository_path(@project.namespace, @project, ref: ref, format: 'tar'), rel: 'nofollow' do
|
||||
%i.fa.fa-download
|
||||
%span Download tar
|
|
@ -6,9 +6,8 @@
|
|||
= render 'projects/last_push'
|
||||
|
||||
.tree-controls
|
||||
= render 'projects/find_file_link'
|
||||
- if can? current_user, :download_code, @project
|
||||
= render 'projects/repositories/download_archive', ref: @ref, btn_class: 'hidden-xs hidden-sm btn-grouped', split_button: true
|
||||
= render 'projects/repositories/download_archive', ref: @ref, btn_class: 'hidden-xs hidden-sm btn-grouped btn-success'
|
||||
|
||||
#tree-holder.tree-holder.clearfix
|
||||
.nav-block
|
||||
|
|
Loading…
Reference in a new issue