Rewrite and improve git backend logic. Fix project movind. Raise exception to prevent unexpected issues
This commit is contained in:
parent
70bf7f6e19
commit
f5551efdfd
20 changed files with 146 additions and 99 deletions
|
@ -1,3 +1,21 @@
|
|||
%h3.page_title New Group
|
||||
%br
|
||||
= render 'form'
|
||||
%hr
|
||||
= form_for [:admin, @group] do |f|
|
||||
- if @group.errors.any?
|
||||
.alert-message.block-message.error
|
||||
%span= @group.errors.full_messages.first
|
||||
.clearfix
|
||||
= f.label :name do
|
||||
Group name is
|
||||
.input
|
||||
= f.text_field :name, placeholder: "Ex. OpenSource", class: "xxlarge left"
|
||||
|
||||
= f.submit 'Create group', class: "btn primary"
|
||||
%hr
|
||||
.padded
|
||||
%ul
|
||||
%li Group is kind of directory for several projects
|
||||
%li All created groups are private
|
||||
%li People within a group see only projects they have access to
|
||||
%li All projects of group will be stored in group directory
|
||||
%li You will be able to move existing projects into group
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
%b
|
||||
Path:
|
||||
%td
|
||||
= @group.path
|
||||
%span.monospace= File.join(Gitlab.config.git_base_path, @group.path)
|
||||
%tr
|
||||
%td
|
||||
%b
|
||||
|
@ -43,10 +43,14 @@
|
|||
= link_to 'Remove from group', remove_project_admin_group_path(@group, project_id: project.id), confirm: 'Are you sure?', method: :delete, class: "btn danger small"
|
||||
.clearfix
|
||||
|
||||
%br
|
||||
%h3 Add new project
|
||||
%br
|
||||
|
||||
= form_tag project_update_admin_group_path(@group), class: "bulk_import", method: :put do
|
||||
= select_tag :project_ids, options_from_collection_for_select(@projects , :id, :name), multiple: true, data: {placeholder: 'Select projects'}, class: 'chosen span5'
|
||||
.form-actions
|
||||
= submit_tag 'Add', class: "btn primary"
|
||||
%fieldset
|
||||
%legend Move projects to group
|
||||
.clearfix
|
||||
= label_tag :project_ids do
|
||||
Projects
|
||||
.input
|
||||
= select_tag :project_ids, options_from_collection_for_select(@projects , :id, :name_with_namespace), multiple: true, data: {placeholder: 'Select projects'}, class: 'chosen span5'
|
||||
.form-actions
|
||||
= submit_tag 'Add', class: "btn primary"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue