Change projects/empty to include the clone_panel partial instead of duplicating
This commit is contained in:
parent
82a3996883
commit
0bc4ecfedd
|
@ -8,6 +8,7 @@
|
|||
= text_field_tag :project_clone, @project.url_to_repo, class: "one_click_select span5"
|
||||
.span4.right
|
||||
.right
|
||||
- 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
|
||||
|
@ -18,4 +19,3 @@
|
|||
- 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
|
||||
|
||||
|
|
|
@ -1,12 +1,6 @@
|
|||
= render 'shared/no_ssh'
|
||||
.project_clone_panel
|
||||
.row
|
||||
.span7
|
||||
.form-horizontal
|
||||
.input-prepend.project_clone_holder
|
||||
= link_to "SSH", "#", class: "btn small active", :"data-clone" => @project.ssh_url_to_repo
|
||||
= link_to "HTTP", "#", class: "btn small", :"data-clone" => @project.http_url_to_repo
|
||||
= text_field_tag :project_clone, @project.url_to_repo, class: "one_click_select span5"
|
||||
= render 'clone_panel'
|
||||
|
||||
%div.git-empty
|
||||
%h4 Git global setup:
|
||||
%pre.dark
|
||||
|
|
Loading…
Reference in a new issue