2014-01-02 11:31:25 -05:00
|
|
|
- ref = ref || nil
|
|
|
|
- btn_class = btn_class || ''
|
2014-09-30 10:41:48 -04:00
|
|
|
- split_button = split_button || false
|
2014-01-02 11:31:25 -05:00
|
|
|
- if split_button == true
|
|
|
|
%span.btn-group{class: btn_class}
|
2015-10-13 10:41:48 -04:00
|
|
|
= link_to archive_namespace_project_repository_path(@project.namespace, @project, ref: ref, format: 'zip'), class: 'btn btn-success col-xs-10', rel: 'nofollow' do
|
2014-10-04 10:58:59 -04:00
|
|
|
%i.fa.fa-download
|
2014-01-02 11:31:25 -05:00
|
|
|
%span Download zip
|
2015-10-13 10:41:48 -04:00
|
|
|
%a.col-xs-2.btn.btn-success.dropdown-toggle{ 'data-toggle' => 'dropdown' }
|
2014-01-02 11:31:25 -05:00
|
|
|
%span.caret
|
|
|
|
%span.sr-only
|
|
|
|
Select Archive Format
|
2015-04-14 10:08:01 -04:00
|
|
|
%ul.col-xs-10.dropdown-menu{ role: 'menu' }
|
2014-01-02 11:31:25 -05:00
|
|
|
%li
|
2015-01-24 13:02:58 -05:00
|
|
|
= link_to archive_namespace_project_repository_path(@project.namespace, @project, ref: ref, format: 'zip'), rel: 'nofollow' do
|
2014-10-04 10:58:59 -04:00
|
|
|
%i.fa.fa-download
|
2014-01-02 11:31:25 -05:00
|
|
|
%span Download zip
|
|
|
|
%li
|
2015-01-24 13:02:58 -05:00
|
|
|
= link_to archive_namespace_project_repository_path(@project.namespace, @project, ref: ref, format: 'tar.gz'), rel: 'nofollow' do
|
2014-10-04 10:58:59 -04:00
|
|
|
%i.fa.fa-download
|
2014-01-02 11:31:25 -05:00
|
|
|
%span Download tar.gz
|
|
|
|
%li
|
2015-01-24 13:02:58 -05:00
|
|
|
= link_to archive_namespace_project_repository_path(@project.namespace, @project, ref: ref, format: 'tar.bz2'), rel: 'nofollow' do
|
2014-10-04 10:58:59 -04:00
|
|
|
%i.fa.fa-download
|
2014-01-02 11:31:25 -05:00
|
|
|
%span Download tar.bz2
|
|
|
|
%li
|
2015-01-24 13:02:58 -05:00
|
|
|
= link_to archive_namespace_project_repository_path(@project.namespace, @project, ref: ref, format: 'tar'), rel: 'nofollow' do
|
2014-10-04 10:58:59 -04:00
|
|
|
%i.fa.fa-download
|
2014-01-02 11:31:25 -05:00
|
|
|
%span Download tar
|
|
|
|
- else
|
|
|
|
%span.btn-group{class: btn_class}
|
2015-01-24 13:02:58 -05:00
|
|
|
= link_to archive_namespace_project_repository_path(@project.namespace, @project, ref: ref, format: 'zip'), class: 'btn', rel: 'nofollow' do
|
2014-10-04 10:58:59 -04:00
|
|
|
%i.fa.fa-download
|
2014-01-02 11:31:25 -05:00
|
|
|
%span zip
|
2015-01-24 13:02:58 -05:00
|
|
|
= link_to archive_namespace_project_repository_path(@project.namespace, @project, ref: ref, format: 'tar.gz'), class: 'btn', rel: 'nofollow' do
|
2014-10-04 10:58:59 -04:00
|
|
|
%i.fa.fa-download
|
2014-06-21 05:18:57 -04:00
|
|
|
%span tar.gz
|