2012-07-04 15:22:23 +01:00
|
|
|
|
- if can? :write, @project
|
2012-08-08 18:21:49 +01:00
|
|
|
|
.r{:style => "display: block"}
|
|
|
|
|
=link_to t("projects.pull_requests.show.pull"), new_project_pull_request_path(@project, :treeish => @treeish), :id => 'send_pull_request', :class => 'button'
|
2012-05-11 19:23:09 +01:00
|
|
|
|
|
2012-04-10 15:15:15 +01:00
|
|
|
|
- if can? :fork, @project
|
2012-04-10 19:05:06 +01:00
|
|
|
|
.r#fork-and-edit= link_to t('layout.projects.fork_and_edit'), '#forkModal', :class => 'button', 'data-toggle' => 'modal'
|
2012-07-17 14:44:42 +01:00
|
|
|
|
#forkModal.modal.fork-modal{:style => 'display: none;'}
|
2012-04-10 19:05:06 +01:00
|
|
|
|
.modal-header
|
|
|
|
|
%a.close{"data-dismiss" => "modal"} ×
|
|
|
|
|
%h3=t 'layout.projects.fork_modal_header'
|
2012-07-17 15:25:02 +01:00
|
|
|
|
.modal-body.modal-body-fork
|
2012-07-17 14:44:42 +01:00
|
|
|
|
=render 'choose_fork', :owner => current_user
|
|
|
|
|
%hr.bootstrap
|
|
|
|
|
- Group.can_own_project(current_user).each do |group|
|
|
|
|
|
=render 'choose_fork', :owner => group
|
|
|
|
|
%hr.bootstrap
|
2013-04-08 15:27:50 +01:00
|
|
|
|
- if @project.is_package && can?(:create, @project.build_lists.new)
|
2012-04-10 15:15:15 +01:00
|
|
|
|
.r{:style => "display: block"}= link_to t('layout.projects.new_build_list'), new_project_build_list_path(@project), :class => 'button'
|