debian-mirror-gitlab/app/views/projects/repositories/_download_archive.html.haml

38 lines
1.8 KiB
Text
Raw Normal View History

2014-09-02 18:07:02 +05:30
- ref = ref || nil
- btn_class = btn_class || ''
2015-04-26 12:48:37 +05:30
- split_button = split_button || false
2014-09-02 18:07:02 +05:30
- if split_button == true
%span.btn-group{class: btn_class}
2015-10-24 18:46:33 +05:30
= link_to archive_namespace_project_repository_path(@project.namespace, @project, ref: ref, format: 'zip'), class: 'btn btn-success col-xs-10', rel: 'nofollow' do
2015-04-26 12:48:37 +05:30
%i.fa.fa-download
2014-09-02 18:07:02 +05:30
%span Download zip
2015-10-24 18:46:33 +05:30
%a.col-xs-2.btn.btn-success.dropdown-toggle{ 'data-toggle' => 'dropdown' }
2014-09-02 18:07:02 +05:30
%span.caret
%span.sr-only
Select Archive Format
2015-04-26 12:48:37 +05:30
%ul.col-xs-10.dropdown-menu{ role: 'menu' }
2014-09-02 18:07:02 +05:30
%li
2015-04-26 12:48:37 +05:30
= link_to archive_namespace_project_repository_path(@project.namespace, @project, ref: ref, format: 'zip'), rel: 'nofollow' do
%i.fa.fa-download
2014-09-02 18:07:02 +05:30
%span Download zip
%li
2015-04-26 12:48:37 +05:30
= link_to archive_namespace_project_repository_path(@project.namespace, @project, ref: ref, format: 'tar.gz'), rel: 'nofollow' do
%i.fa.fa-download
2014-09-02 18:07:02 +05:30
%span Download tar.gz
%li
2015-04-26 12:48:37 +05:30
= link_to archive_namespace_project_repository_path(@project.namespace, @project, ref: ref, format: 'tar.bz2'), rel: 'nofollow' do
%i.fa.fa-download
2014-09-02 18:07:02 +05:30
%span Download tar.bz2
%li
2015-04-26 12:48:37 +05:30
= link_to archive_namespace_project_repository_path(@project.namespace, @project, ref: ref, format: 'tar'), rel: 'nofollow' do
%i.fa.fa-download
2014-09-02 18:07:02 +05:30
%span Download tar
- else
%span.btn-group{class: btn_class}
2015-04-26 12:48:37 +05:30
= link_to archive_namespace_project_repository_path(@project.namespace, @project, ref: ref, format: 'zip'), class: 'btn', rel: 'nofollow' do
%i.fa.fa-download
2014-09-02 18:07:02 +05:30
%span zip
2015-04-26 12:48:37 +05:30
= link_to archive_namespace_project_repository_path(@project.namespace, @project, ref: ref, format: 'tar.gz'), class: 'btn', rel: 'nofollow' do
%i.fa.fa-download
2014-09-02 18:07:02 +05:30
%span tar.gz