[refs #223] fixed rendering fork button
This commit is contained in:
parent
18bda07369
commit
4ba17be536
|
@ -1,7 +1,6 @@
|
|||
- if Group.can_own_project(current_user).present?
|
||||
- if can? :fork, @project
|
||||
- if Group.can_own_project(current_user).present?
|
||||
.r#fork-and-edit= link_to t('layout.projects.fork_and_edit'), '#forkModal', :class => 'button', 'data-toggle' => 'modal'
|
||||
- if can? :create, @project.build_lists.new
|
||||
.r{:style => "display: block"}= link_to t('layout.projects.new_build_list'), new_project_build_list_path(@project), :class => 'button'
|
||||
|
||||
#forkModal.modal{:style => 'display: none;'}
|
||||
.modal-header
|
||||
|
@ -25,5 +24,8 @@
|
|||
= form_for @project, :url => fork_project_path(@project), :html => { :class => :form, :multipart => true, :method => :post } do |f|
|
||||
= hidden_field_tag :group, group.id
|
||||
=f.submit t('layout.projects.fork_to', :to => "#{group.uname} (#{t 'activerecord.models.group'})"), :class => 'btn btn-primary'
|
||||
- else
|
||||
- else
|
||||
.r#fork-and-edit= link_to t('layout.projects.fork_and_edit'), fork_project_path(@project), :method => :post, :confirm => t("layout.confirm"), :class => 'button'
|
||||
|
||||
- if can? :create, @project.build_lists.new
|
||||
.r{:style => "display: block"}= link_to t('layout.projects.new_build_list'), new_project_build_list_path(@project), :class => 'button'
|
||||
|
|
Loading…
Reference in New Issue