2012-08-30 06:26:45 +00:00
|
|
|
.project_clone_panel
|
|
|
|
.row
|
2013-04-26 19:12:43 +00:00
|
|
|
.span8
|
2012-10-22 17:30:42 +00:00
|
|
|
.form-horizontal= render "shared/clone_panel"
|
2013-04-26 19:12:43 +00:00
|
|
|
.span3.pull-right
|
2013-01-30 14:40:43 +00:00
|
|
|
.pull-right
|
2013-04-01 18:25:50 +00:00
|
|
|
- unless @project.empty_repo?
|
2013-05-08 16:40:31 +00:00
|
|
|
- if can?(current_user, :fork_project, @project) && @project.namespace != current_user.namespace
|
|
|
|
- if current_user.already_forked?(@project)
|
2013-05-14 19:45:28 +00:00
|
|
|
= link_to project_path(current_user.fork_of(@project)), class: 'btn grouped btn-primary' do
|
2013-05-08 16:40:31 +00:00
|
|
|
Forked
|
|
|
|
- else
|
|
|
|
= link_to fork_project_path(@project), title: "Fork", class: "btn grouped", method: "POST" do
|
|
|
|
%i.icon-copy
|
|
|
|
Fork
|
2012-09-04 16:05:08 +00:00
|
|
|
- if can? current_user, :download_code, @project
|
2013-04-26 17:59:29 +00:00
|
|
|
= link_to archive_project_repository_path(@project), class: "btn grouped" do
|
2012-09-04 16:05:08 +00:00
|
|
|
%i.icon-download-alt
|
|
|
|
Download
|
2013-04-26 19:12:43 +00:00
|
|
|
|
|
|
|
= link_to tags_project_repository_path(@project), class: "btn grouped only-wide", title: 'Git Tags' do
|
|
|
|
%i.icon-tags
|
2013-05-03 21:08:49 +00:00
|
|
|
Tags
|
2013-04-26 19:12:43 +00:00
|
|
|
|