summaryrefslogtreecommitdiff
path: root/app/views/projects/buttons/_download_links.html.haml
blob: d36aed44e18a0564fe4e30cd2e2fe85171f9b8ac (plain)
1
2
3
4
.btn-group.ml-0.w-100
  - Gitlab::Workhorse::ARCHIVE_FORMATS.each_with_index do |fmt, index|
    - archive_path = project_archive_path(project, id: tree_join(ref, archive_prefix), path: path, format: fmt)
    = link_to fmt, external_storage_url_or_path(archive_path), rel: 'nofollow', download: '', class: "gl-button btn btn-sm #{index == 0 ? 'btn-confirm' : 'btn-default'}"