Merge branch 'master' into 90-pull

Conflicts:
	app/assets/stylesheets/design/custom.scss
This commit is contained in:
Alexander Machehin 2012-07-20 15:33:11 +06:00
commit d130409640
4 changed files with 24 additions and 7 deletions

View File

@ -1181,6 +1181,20 @@ table.tablesorter tr td.no_results {
} }
/* end */ /* 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;
}
.label-bootstrap.label-info.font14 a { .label-bootstrap.label-info.font14 a {
color: #FFFFFF; color: #FFFFFF;
} }

View File

@ -42,12 +42,12 @@ class Project < ActiveRecord::Base
after_create :attach_to_personal_repository after_create :attach_to_personal_repository
after_create :create_git_repo after_create :create_git_repo
after_create {|p| p.fork_git_repo unless p.is_root?}
after_save :create_wiki after_save :create_wiki
after_commit(:on => :create) {|p| p.fork_git_repo unless p.is_root?} # later with resque
after_destroy :destroy_git_repo after_destroy :destroy_git_repo
after_destroy :destroy_wiki after_destroy :destroy_wiki
after_save {|p| p.import_attached_srpm if p.srpm?} # later with resque # should be after create_git_repo after_commit(:on => :create) {|p| p.import_attached_srpm if p.srpm?}# later with resque # should be after create_git_repo
# after_rollback lambda { destroy_git_repo rescue true if new_record? } # after_rollback lambda { destroy_git_repo rescue true if new_record? }
has_ancestry has_ancestry

View File

@ -54,4 +54,4 @@
.both .both
%footer= render "layouts/menu/bottom" %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

@ -12,12 +12,15 @@
- if can? :fork, @project - if can? :fork, @project
.r#fork-and-edit= link_to t('layout.projects.fork_and_edit'), '#forkModal', :class => 'button', 'data-toggle' => 'modal' .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 .modal-header
%a.close{"data-dismiss" => "modal"} × %a.close{"data-dismiss" => "modal"} ×
%h3=t 'layout.projects.fork_modal_header' %h3=t 'layout.projects.fork_modal_header'
.modal-footer=render 'choose_fork', :owner => current_user .modal-body.modal-body-fork
- Group.can_own_project(current_user).each do |group| =render 'choose_fork', :owner => current_user
.modal-footer=render 'choose_fork', :owner => group %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 - 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' .r{:style => "display: block"}= link_to t('layout.projects.new_build_list'), new_project_build_list_path(@project), :class => 'button'