Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
44209861
Commit
44209861
authored
Dec 14, 2012
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow group path renaming. Dont show project transfer if no permissions. More danger messages :)
parent
a8fbda94
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
46 additions
and
23 deletions
+46
-23
app/assets/stylesheets/gitlab_bootstrap/common.scss
app/assets/stylesheets/gitlab_bootstrap/common.scss
+6
-0
app/views/admin/groups/edit.html.haml
app/views/admin/groups/edit.html.haml
+14
-5
app/views/admin/groups/show.html.haml
app/views/admin/groups/show.html.haml
+10
-5
app/views/projects/_form.html.haml
app/views/projects/_form.html.haml
+16
-13
No files found.
app/assets/stylesheets/gitlab_bootstrap/common.scss
View file @
44209861
...
...
@@ -100,6 +100,12 @@ input[type='search'].search-text-input {
border
:
1px
solid
#ccc
;
}
input
[
type
=
'text'
]
.danger
{
background
:
#F2DEDE
!
important
;
border-color
:
#D66
;
text-shadow
:
0
1px
1px
#fff
}
fieldset
legend
{
font-size
:
17px
;
}
/** PAGINATION **/
...
...
app/views/admin/groups/edit.html.haml
View file @
44209861
%h3
.page_title
Rename Group
%hr
.alert
Renaming group can have unintended side effects.
%br
Renaming group will rename directory for all related projects
=
form_for
[
:admin
,
@group
]
do
|
f
|
-
if
@group
.
errors
.
any?
.alert-message.block-message.error
...
...
@@ -14,6 +10,19 @@
.input
=
f
.
text_field
:name
,
placeholder:
"Example Group"
,
class:
"xxlarge"
.clearfix.group_name_holder
=
f
.
label
:path
do
%span
.cred
Group path is
.input
=
f
.
text_field
:path
,
placeholder:
"example-group"
,
class:
"xxlarge danger"
%ul
.cred
%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
'Rename group'
,
class:
"btn
save-btn
"
=
f
.
submit
'Rename group'
,
class:
"btn
danger
"
=
link_to
'Cancel'
,
admin_groups_path
,
class:
"btn cancel-btn"
app/views/admin/groups/show.html.haml
View file @
44209861
...
...
@@ -33,12 +33,17 @@
=
link_to
"#"
,
class:
"btn btn-small change-owner-link"
do
%i
.icon-edit
Change owner
.change-owner-holder.hide
%tr
.change-owner-holder.hide
%td
.bgred
%b
.cred
New Owner:
%td
.bgred
=
form_for
[
:admin
,
@group
]
do
|
f
|
=
f
.
select
:owner_id
,
User
.
all
.
map
{
|
user
|
[
user
.
name
,
user
.
id
]
},
{},
{
class:
'chosen'
}
=
f
.
submit
'Save'
,
class:
"btn btn-small save-btn"
=
link_to
"Cancel"
,
"#"
,
class:
"btn btn-small change-owner-cancel-link
"
%div
=
f
.
submit
'Change Owner'
,
class:
"btn danger
"
=
link_to
"Cancel"
,
"#"
,
class:
"btn change-owner-cancel-link"
%fieldset
%legend
Projects (
#{
@group
.
projects
.
count
}
)
%table
...
...
app/views/projects/_form.html.haml
View file @
44209861
...
...
@@ -17,19 +17,6 @@
.controls
=
text_field_tag
:ppath
,
@project
.
path_to_repo
,
class:
"xxlarge"
,
readonly:
true
.control-group
=
f
.
label
:namespace_id
do
%span
Namespace
.controls
-
if
can?
current_user
,
:change_namespace
,
@project
=
f
.
select
:namespace_id
,
namespaces_options
(
@project
.
namespace_id
||
Namespace
::
global_id
),
{
prompt:
'Choose a project namespace'
},
{
class:
'chosen'
}
%span
.cred
Be careful. Changing project namespace can have unintended side effects
-
else
%a
.btn.disabled
=
@project
.
namespace
.
try
(
:human_name
)
||
"/"
%span
.cred
Only owner can change project namespace.
-
unless
@project
.
heads
.
empty?
.clearfix
...
...
@@ -63,6 +50,22 @@
=
f
.
check_box
:wiki_enabled
%span
.descr
Pages for project documentation
-
if
can?
current_user
,
:change_namespace
,
@project
%fieldset
.features
%legend
Transfer:
.control-group
=
f
.
label
:namespace_id
do
%span
Namespace
.controls
=
f
.
select
:namespace_id
,
namespaces_options
(
@project
.
namespace_id
||
Namespace
::
global_id
),
{
prompt:
'Choose a project namespace'
},
{
class:
'chosen'
}
%br
%ul
.prepend-top-10.cred
%li
Be careful. Changing project namespace can have unintended side effects
%li
You can transfer project only to namespaces you can manage
%li
You will need to update your local repositories to point to the new location.
%br
.actions
...
...
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