Merge branch 'master' into 263-refactoring

This commit is contained in:
Pavel Chipiga 2012-07-19 18:58:47 +03:00
commit 2cc3798cdc
3 changed files with 22 additions and 5 deletions

View File

@ -1172,3 +1172,17 @@ table.tablesorter tr td.no_results {
text-align: center;
}
/* end */
hr.bootstrap {
border: 0;
border-top: 1px solid #eeeeee;
border-bottom: 1px solid #ffffff;
}
.fork-modal {
top: 45%;
}
.modal-body-fork {
max-height: 280px;
}

View File

@ -54,4 +54,4 @@
.both
%footer= render "layouts/menu/bottom"
= render 'layouts/counters' unless current_user.try(:admin?)
= render 'layouts/counters' if !current_user.try(:admin?) && Rails.env.production?

View File

@ -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.modal-body-fork
=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'