BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
1f2628fe
Unverified
Commit
1f2628fe
authored
Dec 22, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow Group path to be changed at the same time as name
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
52a8e5c0
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
13 deletions
+10
-13
_form.html.haml
app/views/admin/groups/_form.html.haml
+0
-11
_group_form.html.haml
app/views/shared/_group_form.html.haml
+7
-0
groups.rb
features/steps/groups.rb
+2
-1
create.rb
features/steps/project/create.rb
+1
-1
No files found.
app/views/admin/groups/_form.html.haml
View file @
1f2628fe
...
...
@@ -21,17 +21,6 @@
=
link_to
'Cancel'
,
admin_groups_path
,
class:
"btn btn-cancel"
-
else
.form-group.group_name_holder
=
f
.
label
:path
,
class:
'control-label'
do
%span
Group path
.col-sm-10
=
f
.
text_field
:path
,
placeholder:
"example-group"
,
class:
"form-control danger"
.bs-callout.bs-callout-danger
%ul
%li
Changing group path can have unintended side effects.
%li
Renaming group path will rename directory for all related projects
%li
It will change web url for access group and group projects.
%li
It will change the git path to repositories under this group.
.form-actions
=
f
.
submit
'Save changes'
,
class:
"btn btn-primary"
=
link_to
'Cancel'
,
admin_group_path
(
@group
),
class:
"btn btn-cancel"
...
...
app/views/shared/_group_form.html.haml
View file @
1f2628fe
...
...
@@ -14,6 +14,13 @@
=
root_url
=
f
.
text_field
:path
,
placeholder:
'open-source'
,
class:
'form-control'
,
autofocus:
local_assigns
[
:autofocus
]
||
false
-
if
@group
.
persisted?
.bs-callout.bs-callout-danger
%ul
%li
Changing group path can have unintended side effects.
%li
Renaming group path will rename directory for all related projects
%li
It will change web url for access group and group projects.
%li
It will change the git path to repositories under this group.
.form-group.group-description-holder
=
f
.
label
:description
,
'Details'
,
class:
'control-label'
...
...
features/steps/groups.rb
View file @
1f2628fe
...
...
@@ -77,7 +77,7 @@ class Spinach::Features::Groups < Spinach::FeatureSteps
end
step
'submit form with new group "Samurai" info'
do
fill_in
'group_
name
'
,
with:
'Samurai'
fill_in
'group_
path
'
,
with:
'Samurai'
fill_in
'group_description'
,
with:
'Tokugawa Shogunate'
click_button
"Create group"
end
...
...
@@ -94,6 +94,7 @@ class Spinach::Features::Groups < Spinach::FeatureSteps
step
'I change group "Owned" name to "new-name"'
do
fill_in
'group_name'
,
with:
'new-name'
fill_in
'group_path'
,
with:
'new-name'
click_button
"Save group"
end
...
...
features/steps/project/create.rb
View file @
1f2628fe
...
...
@@ -3,7 +3,7 @@ class Spinach::Features::ProjectCreate < Spinach::FeatureSteps
include
SharedPaths
step
'fill project form with valid data'
do
fill_in
'project_
name
'
,
with:
'Empty'
fill_in
'project_
path
'
,
with:
'Empty'
click_button
"Create project"
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment