2012-08-30 08:26:45 +02:00
|
|
|
.project_clone_panel
|
|
|
|
.row
|
|
|
|
.span7
|
|
|
|
.form-horizontal
|
|
|
|
.input-prepend.project_clone_holder
|
2012-09-03 21:30:14 +02:00
|
|
|
%button{class: "btn small active", :"data-clone" => @project.ssh_url_to_repo} SSH
|
2012-10-02 09:54:33 +02:00
|
|
|
%button{class: "btn small", :"data-clone" => @project.http_url_to_repo}= Gitlab.config.web_protocol.upcase
|
2012-08-30 08:26:45 +02:00
|
|
|
= text_field_tag :project_clone, @project.url_to_repo, class: "one_click_select span5"
|
|
|
|
.span4.right
|
|
|
|
.right
|
2012-09-04 18:05:08 +02:00
|
|
|
- unless @project.empty_repo?
|
|
|
|
- if can? current_user, :download_code, @project
|
|
|
|
= link_to archive_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_to new_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_to new_project_issue_path(@project), title: "New Issue", class: "btn small grouped" do
|
|
|
|
Issue
|