Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
788033a2
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,发现更多精彩内容 >>
提交
788033a2
编写于
9月 03, 2014
作者:
C
Ciro Santilli
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Factor new issue and edit MR forms.
上级
00ccaed0
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
41 addition
and
62 deletion
+41
-62
app/views/projects/_issuable_form.html.haml
app/views/projects/_issuable_form.html.haml
+39
-0
app/views/projects/issues/_form.html.haml
app/views/projects/issues/_form.html.haml
+1
-31
app/views/projects/merge_requests/_form.html.haml
app/views/projects/merge_requests/_form.html.haml
+1
-31
未找到文件。
app/views/projects/_issuable_form.html.haml
0 → 100644
浏览文件 @
788033a2
.form-group
=
f
.
label
:title
,
class:
'control-label'
do
%strong
=
'Title *'
.col-sm-10
=
f
.
text_field
:title
,
maxlength:
255
,
autofocus:
true
,
class:
'form-control pad js-gfm-input'
,
required:
true
.form-group
=
f
.
label
:description
,
'Description'
,
class:
'control-label'
.col-sm-10
=
f
.
text_area
:description
,
rows:
14
,
class:
'form-control js-gfm-input markdown-area'
.col-sm-12.hint
.pull-left
Parsed with
#{
link_to
'GitLab Flavored Markdown'
,
help_page_path
(
'markdown'
,
'markdown'
),
target:
'_blank'
}
.
.pull-right
Attach images (JPG, PNG, GIF) by dragging
&
dropping
or
#{
link_to
'selecting them'
,
'#'
,
class:
'markdown-selector'
}
.
.clearfix
.error-alert
%hr
.form-group
.issue-assignee
=
f
.
label
:assignee_id
,
class:
'control-label'
do
%i
.icon-user
Assign to
.col-sm-10
=
project_users_select_tag
(
"
#{
issuable
.
class
.
model_name
.
param_key
}
[assignee_id]"
,
placeholder:
'Select a user'
,
class:
'custom-form-control'
,
selected:
issuable
.
assignee_id
)
=
link_to
'Assign to me'
,
'#'
,
class:
'btn assign-to-me-link'
.form-group
.issue-milestone
=
f
.
label
:milestone_id
,
class:
'control-label'
do
%i
.icon-time
Milestone
.col-sm-10
=
f
.
select
(
:milestone_id
,
milestone_options
(
issuable
),
{
include_blank:
'Select milestone'
},
{
class:
'select2'
})
app/views/projects/issues/_form.html.haml
浏览文件 @
788033a2
...
...
@@ -16,37 +16,7 @@
-
@issue
.
errors
.
full_messages
.
each
do
|
msg
|
%span
=
msg
%br
.form-group
=
f
.
label
:title
,
class:
'control-label'
do
%strong
=
'Title *'
.col-sm-10
=
f
.
text_field
:title
,
maxlength:
255
,
class:
"form-control js-gfm-input"
,
autofocus:
true
,
required:
true
.form-group
=
f
.
label
:description
,
'Description'
,
class:
'control-label'
.col-sm-10
=
f
.
text_area
:description
,
class:
'form-control js-gfm-input markdown-area'
,
rows:
14
.col-sm-12.hint
.pull-left
Issues are parsed with
#{
link_to
"GitLab Flavored Markdown"
,
help_page_path
(
"markdown"
,
"markdown"
),
target:
'_blank'
}
.
.pull-right
Attach images (JPG, PNG, GIF) by dragging
&
dropping or
#{
link_to
"selecting them"
,
'#'
,
class:
'markdown-selector'
}
.
.clearfix
.error-alert
%hr
.form-group
.issue-assignee
=
f
.
label
:assignee_id
,
class:
'control-label'
do
%i
.icon-user
Assign to
.col-sm-10
=
project_users_select_tag
(
'issue[assignee_id]'
,
placeholder:
'Select a user'
,
class:
'custom-form-control'
,
selected:
@issue
.
assignee_id
)
=
link_to
'Assign to me'
,
'#'
,
class:
'btn assign-to-me-link'
.form-group
.issue-milestone
=
f
.
label
:milestone_id
,
class:
'control-label'
do
%i
.icon-time
Milestone
.col-sm-10
=
f
.
select
(
:milestone_id
,
milestone_options
(
@issue
),
{
include_blank:
"Select milestone"
},
{
class:
'select2'
})
=
render
'projects/issuable_form'
,
f:
f
,
issuable:
@issue
.form-group
=
f
.
label
:label_ids
,
class:
'control-label'
do
%i
.icon-tag
...
...
app/views/projects/merge_requests/_form.html.haml
浏览文件 @
788033a2
...
...
@@ -15,37 +15,7 @@
%div
=
msg
.merge-request-form-info
.form-group
=
f
.
label
:title
,
class:
'control-label'
do
%strong
=
"Title *"
.col-sm-10
=
f
.
text_field
:title
,
class:
"form-control pad js-gfm-input"
,
maxlength:
255
,
rows:
5
,
required:
true
.form-group
=
f
.
label
:description
,
"Description"
,
class:
'control-label'
.col-sm-10
=
f
.
text_area
:description
,
class:
"form-control js-gfm-input markdown-area"
,
rows:
14
.col-sm-12.hint
.pull-left
Description is parsed with
#{
link_to
"GitLab Flavored Markdown"
,
help_page_path
(
"markdown"
,
"markdown"
),
target:
'_blank'
}
.
.pull-right
Attach images (JPG, PNG, GIF) by dragging
&
dropping or
#{
link_to
"selecting them"
,
'#'
,
class:
'markdown-selector'
}
.
.clearfix
.error-alert
%hr
.form-group
.issue-assignee
=
f
.
label
:assignee_id
,
class:
'control-label'
do
%i
.icon-user
Assign to
.col-sm-10
=
project_users_select_tag
(
'merge_request[assignee_id]'
,
placeholder:
'Select a user'
,
class:
'custom-form-control'
,
selected:
@merge_request
.
assignee_id
)
=
link_to
'Assign to me'
,
'#'
,
class:
'btn assign-to-me-link'
.form-group
.issue-milestone
=
f
.
label
:milestone_id
,
class:
'control-label'
do
%i
.icon-time
Milestone
.col-sm-10
=
f
.
select
(
:milestone_id
,
milestone_options
(
@merge_request
),
{
include_blank:
"Select milestone"
},
{
class:
'select2'
})
=
render
'projects/issuable_form'
,
f:
f
,
issuable:
@merge_request
.form-group
=
f
.
label
:label_ids
,
class:
'control-label'
do
%i
.icon-tag
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录