Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
f1795a49
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,发现更多精彩内容 >>
提交
f1795a49
编写于
4月 17, 2012
作者:
D
Dmitriy Zaporozhets
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Issues form improved, Show milestone for Issue show
上级
c9def945
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
76 addition
and
34 deletion
+76
-34
app/assets/stylesheets/main.scss
app/assets/stylesheets/main.scss
+5
-0
app/assets/stylesheets/sections/issues.scss
app/assets/stylesheets/sections/issues.scss
+27
-0
app/views/issues/_form.html.haml
app/views/issues/_form.html.haml
+33
-30
app/views/issues/show.html.haml
app/views/issues/show.html.haml
+11
-4
未找到文件。
app/assets/stylesheets/main.scss
浏览文件 @
f1795a49
...
...
@@ -98,6 +98,11 @@ $hover: #FDF5D9;
*/
@import
"sections/commits.scss"
;
/**
* Styles related to displaying issues
*/
@import
"sections/issues.scss"
;
/**
* This scss file redefine chozen selectbox styles for
* project Branch/Tag select element
...
...
app/assets/stylesheets/sections/issues.scss
0 → 100644
浏览文件 @
f1795a49
.issue_form_box
{
@extend
.main_box
;
.issue_title
{
@extend
.top_box_content
;
.clearfix
{
margin-bottom
:
0px
;
input
{
@extend
.span8
;
}
}
}
.issue_middle_block
{
@extend
.middle_box_content
;
height
:
30px
;
.issue_assignee
{
@extend
.span6
;
float
:left
;
}
.issue_milestone
{
@extend
.span4
;
float
:left
;
}
}
.issue_description
{
@extend
.bottom_box_content
;
}
}
app/views/issues/_form.html.haml
浏览文件 @
f1795a49
%div
.issue-form-holder
%h3
=
@issue
.
new_record?
?
"New Issue"
:
"Edit Issue #
#{
@issue
.
id
}
"
-
unless
request
.
xhr?
.back_link
=
link_to
project_issue_path
(
@project
,
@issue
)
do
←
back to show page
=
form_for
[
@project
,
@issue
],
:remote
=>
request
.
xhr?
do
|
f
|
%h3
=
@issue
.
new_record?
?
"New Issue"
:
"Edit Issue #
#{
@issue
.
id
}
"
%hr
-
if
@issue
.
errors
.
any?
.alert-message.block-message.error
%ul
-
@issue
.
errors
.
full_messages
.
each
do
|
msg
|
%li
=
msg
.issue_form_box
.issue_title
.clearfix
=
f
.
label
:title
,
"Issue Subject *"
.input
=
f
.
text_field
:title
,
:maxlength
=>
255
,
:class
=>
"xxlarge"
.issue_middle_block
.issue_assignee
=
f
.
label
:assignee_id
,
"Assign to *"
.input
=
f
.
select
(
:assignee_id
,
@project
.
users
.
all
.
collect
{
|
p
|
[
p
.
name
,
p
.
id
]
},
{
:include_blank
=>
"Assign to user"
})
.issue_milestone
=
f
.
label
:milestone_id
.input
=
f
.
select
(
:milestone_id
,
@project
.
milestones
.
active
.
all
.
collect
{
|
p
|
[
p
.
title
,
p
.
id
]
},
{
:include_blank
=>
"Select milestone"
})
.issue_description
.clearfix
=
f
.
label
:critical
,
"Critical"
.input
=
f
.
check_box
:critical
-
unless
@issue
.
new_record?
.clearfix
=
f
.
label
:closed
.input
=
f
.
check_box
:closed
.clearfix
=
f
.
label
:description
,
"Issue Details"
.input
=
f
.
text_area
:description
,
:maxlength
=>
2000
,
:class
=>
"xxlarge"
,
:rows
=>
14
%p
.hint
Markdown is enabled.
.clearfix
=
f
.
label
:title
,
"Issue Subject *"
.input
=
f
.
text_field
:title
,
:maxlength
=>
255
,
:class
=>
"xxlarge"
.clearfix
=
f
.
label
:assignee_id
,
"Assign to *"
.input
=
f
.
select
(
:assignee_id
,
@project
.
users
.
all
.
collect
{
|
p
|
[
p
.
name
,
p
.
id
]
},
{
:include_blank
=>
"Assign to user"
})
.clearfix
=
f
.
label
:description
,
"Issue Details"
.input
=
f
.
text_area
:description
,
:maxlength
=>
2000
,
:class
=>
"xxlarge"
,
:rows
=>
10
%p
.hint
Markdown is enabled.
.clearfix
=
f
.
label
:milestone_id
.input
=
f
.
select
(
:milestone_id
,
@project
.
milestones
.
active
.
all
.
collect
{
|
p
|
[
p
.
title
,
p
.
id
]
},
{
:include_blank
=>
"Select milestone"
})
.clearfix
=
f
.
label
:critical
,
"Critical"
.input
=
f
.
check_box
:critical
-
unless
@issue
.
new_record?
.clearfix
=
f
.
label
:closed
.input
=
f
.
check_box
:closed
.actions
-
if
@issue
.
new_record?
...
...
app/views/issues/show.html.haml
浏览文件 @
f1795a49
...
...
@@ -7,11 +7,11 @@
%span
.right
-
if
can?
(
current_user
,
:admin_project
,
@project
)
||
@issue
.
author
==
current_user
-
if
@issue
.
closed
=
link_to
'Reopen'
,
project_issue_path
(
@project
,
@issue
,
:issue
=>
{
:closed
=>
false
},
:status_only
=>
true
),
:method
=>
:put
,
:class
=>
"btn"
=
link_to
'Reopen'
,
project_issue_path
(
@project
,
@issue
,
:issue
=>
{
:closed
=>
false
},
:status_only
=>
true
),
:method
=>
:put
,
:class
=>
"btn
small
"
-
else
=
link_to
'Close'
,
project_issue_path
(
@project
,
@issue
,
:issue
=>
{
:closed
=>
true
},
:status_only
=>
true
),
:method
=>
:put
,
:class
=>
"btn"
,
:title
=>
"Close Issue"
=
link_to
'Close'
,
project_issue_path
(
@project
,
@issue
,
:issue
=>
{
:closed
=>
true
},
:status_only
=>
true
),
:method
=>
:put
,
:class
=>
"btn
small
"
,
:title
=>
"Close Issue"
-
if
can?
(
current_user
,
:admin_project
,
@project
)
||
@issue
.
author
==
current_user
=
link_to
edit_project_issue_path
(
@project
,
@issue
),
:class
=>
"btn"
do
=
link_to
edit_project_issue_path
(
@project
,
@issue
),
:class
=>
"btn
small
"
do
Edit
%br
...
...
@@ -39,7 +39,14 @@
%cite
.cgray
and currently assigned to
=
image_tag
gravatar_icon
(
@issue
.
assignee_email
),
:width
=>
16
,
:class
=>
"lil_av"
%strong
.author
=
link_to_issue_assignee
(
@issue
)
-
if
@issue
.
milestone
-
milestone
=
@issue
.
milestone
%cite
.cgray
and attached to milestone
=
link_to
project_milestone_path
(
milestone
.
project
,
milestone
)
do
%strong
=
truncate
(
milestone
.
title
,
:length
=>
20
)
-
if
@issue
.
description
.
present?
.bottom_box_content
=
preserve
do
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录