-unless@project.empty_repo?-ifcan?current_user,:download_code,@project=link_toarchive_project_repository_path(@project),class: "btn small grouped"do%i.icon-download-alt Download-if@project.merge_requests_enabled&&can?(current_user,:write_merge_request,@project)=link_tonew_project_merge_request_path(@project),title: "New Merge Request",class: "btn small grouped"do Merge Request-if@project.issues_enabled&&can?(current_user,:write_issue,@project)=link_tonew_project_issue_path(@project),title: "New Issue",class: "btn small grouped"do Issue