[refs #223] fixed rendering fork button
This commit is contained in:
parent
18bda07369
commit
4ba17be536
|
@ -1,7 +1,6 @@
|
|||
- 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
|
||||
|
@ -27,3 +26,6 @@
|
|||
=f.submit t('layout.projects.fork_to', :to => "#{group.uname} (#{t 'activerecord.models.group'})"), :class => 'btn btn-primary'
|
||||
- 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