diff --git a/app/assets/stylesheets/design/custom.scss b/app/assets/stylesheets/design/custom.scss index ccf97e3d0..68202362b 100644 --- a/app/assets/stylesheets/design/custom.scss +++ b/app/assets/stylesheets/design/custom.scss @@ -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; +} \ No newline at end of file diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml index 642d9b82e..9bce9bc2b 100644 --- a/app/views/layouts/application.html.haml +++ b/app/views/layouts/application.html.haml @@ -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? diff --git a/app/views/projects/git/base/_fork.html.haml b/app/views/projects/git/base/_fork.html.haml index ccb928bff..1e733798f 100644 --- a/app/views/projects/git/base/_fork.html.haml +++ b/app/views/projects/git/base/_fork.html.haml @@ -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'