%span.btn-group.btn-grouped
  = link_to archive_namespace_project_repository_path(project.namespace, project, ref: ref, format: 'zip'), class: 'btn btn-default', rel: 'nofollow' do
    %i.fa.fa-download
    %span source code
  %a.btn.btn-default.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
