Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
44209861
G
gitlab-foss
项目概览
李少辉-开发者
/
gitlab-foss
通知
15
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
gitlab-foss
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
44209861
编写于
12月 14, 2012
作者:
D
Dmitriy Zaporozhets
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Allow group path renaming. Dont show project transfer if no permissions. More danger messages :)
上级
a8fbda94
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
46 addition
and
23 deletion
+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
未找到文件。
app/assets/stylesheets/gitlab_bootstrap/common.scss
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录