gitlab-org--gitlab-foss/app/views/projects/_clone_panel.html.haml
2013-05-14 22:45:28 +03:00

24 lines
1,007 B
Text

.project_clone_panel
.row
.span8
.form-horizontal= render "shared/clone_panel"
.span3.pull-right
.pull-right
- unless @project.empty_repo?
- if can?(current_user, :fork_project, @project) && @project.namespace != current_user.namespace
- if current_user.already_forked?(@project)
= link_to project_path(current_user.fork_of(@project)), class: 'btn grouped btn-primary' do
Forked
- else
= link_to fork_project_path(@project), title: "Fork", class: "btn grouped", method: "POST" do
%i.icon-copy
Fork
- if can? current_user, :download_code, @project
= link_to archive_project_repository_path(@project), class: "btn grouped" do
%i.icon-download-alt
Download
= link_to tags_project_repository_path(@project), class: "btn grouped only-wide", title: 'Git Tags' do
%i.icon-tags
Tags