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

5 lines
314 B
Text
Raw Normal View History

2015-11-26 14:37:03 +05:30
- unless @project.empty_repo?
- if can? current_user, :download_code, @project
2016-06-02 11:05:42 +05:30
= link_to archive_namespace_project_repository_path(@project.namespace, @project, ref: @ref, format: 'zip'), class: 'btn has-tooltip', data: {container: "body"}, rel: 'nofollow', title: "Download ZIP" do
2015-11-26 14:37:03 +05:30
= icon('download')