[refs #569] fixed fork modal
This commit is contained in:
parent
d9755f295c
commit
cd681ab0ae
|
@ -1172,3 +1172,20 @@ table.tablesorter tr td.no_results {
|
|||
text-align: center;
|
||||
}
|
||||
/* end */
|
||||
|
||||
hr.bootstrap {
|
||||
-moz-border-bottom-colors: none;
|
||||
-moz-border-image: none;
|
||||
-moz-border-left-colors: none;
|
||||
-moz-border-right-colors: none;
|
||||
-moz-border-top-colors: none;
|
||||
border-color: #EEEEEE -moz-use-text-color #FFFFFF;
|
||||
border-left: 0 none;
|
||||
border-right: 0 none;
|
||||
border-style: solid none;
|
||||
border-width: 1px 0;
|
||||
}
|
||||
|
||||
.fork-modal {
|
||||
top: 35%;
|
||||
}
|
|
@ -1,11 +1,14 @@
|
|||
- if can? :fork, @project
|
||||
.r#fork-and-edit= link_to t('layout.projects.fork_and_edit'), '#forkModal', :class => 'button', 'data-toggle' => 'modal'
|
||||
#forkModal.modal{:style => 'display: none;'}
|
||||
#forkModal.modal.fork-modal{:style => 'display: none;'}
|
||||
.modal-header
|
||||
%a.close{"data-dismiss" => "modal"} ×
|
||||
%h3=t 'layout.projects.fork_modal_header'
|
||||
.modal-footer=render 'choose_fork', :owner => current_user
|
||||
- Group.can_own_project(current_user).each do |group|
|
||||
.modal-footer=render 'choose_fork', :owner => group
|
||||
.modal-body
|
||||
=render 'choose_fork', :owner => current_user
|
||||
%hr.bootstrap
|
||||
- Group.can_own_project(current_user).each do |group|
|
||||
=render 'choose_fork', :owner => group
|
||||
%hr.bootstrap
|
||||
- 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