debian-mirror-gitlab/app/views/projects/buttons/_download_links.html.haml

6 lines
312 B
Text
Raw Normal View History

2019-07-31 22:56:46 +05:30
- formats = [['zip', 'btn-primary'], ['tar.gz'], ['tar.bz2'], ['tar']]
2019-09-04 21:01:54 +05:30
.btn-group.ml-0.w-100
2019-07-31 22:56:46 +05:30
- formats.each do |(fmt, extra_class)|
= link_to fmt, project_archive_path(project, id: tree_join(ref, archive_prefix), path: path, format: fmt), rel: 'nofollow', download: '', class: "btn btn-xs #{extra_class}"