Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
4e55cc67
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 搜索 >>
提交
4e55cc67
编写于
11月 25, 2011
作者:
G
gitlabhq
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Issue show page restyled
上级
b7f4f67b
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
28 addition
and
64 deletion
+28
-64
app/views/issues/edit.html.haml
app/views/issues/edit.html.haml
+1
-1
app/views/issues/show.html.haml
app/views/issues/show.html.haml
+27
-63
未找到文件。
app/views/issues/edit.html.haml
浏览文件 @
4e55cc67
...
...
@@ -15,7 +15,7 @@
%tr
%td
=
f
.
label
:assignee_id
%td
=
f
.
select
(
:assignee_id
,
@project
.
users
.
all
.
collect
{
|
p
|
[
p
.
name
,
p
.
id
]
},
{
:include_blank
=>
"Select user"
})
%tr
-#
%tr
%td= f.label :branch_name
%td= f.select(:branch_name, @project.heads.map(&:name), { :include_blank => "Select git branch" })
%tr
...
...
app/views/issues/show.html.haml
浏览文件 @
4e55cc67
%h2
.icon
%span
%d
=
"Issue #
#{
@issue
.
id
}
"
-
unless
@commits
.
blank?
.right
=
link_to
'Browse Code'
,
tree_project_ref_path
(
@project
,
@issue
.
branch_name
),
:class
=>
"browse-code button yellow"
,
:style
=>
"margin-right:10px;"
=
link_to
'Commits'
,
project_commits_path
(
@project
,
:ref
=>
@issue
.
branch_name
),
:class
=>
"browse-code button"
.clear
%h3
=
@issue
.
title
%table
.round-borders
%thead
%th
Assignee
%th
Status
%th
Opened
%th
Tags
%tr
%td
=
image_tag
gravatar_icon
(
@issue
.
assignee_email
),
:width
=>
20
,
:style
=>
"padding:0 5px;"
=
@issue
.
assignee_name
%td
.issue-show-holder.ui-box
%h3
=
"Issue #
#{
@issue
.
id
}
"
.right
-
if
@issue
.
closed
%span
.tag.high
Resolved
-
else
%span
.tag.today
Open
%td
=
@issue
.
created_at
.
stamp
(
"21 Aug 2011, 11:15pm"
)
%td
-
if
@issue
.
critical
%span
.tag.high
critical
-
else
%span
.tag.normal
normal
-
if
@issue
.
today?
%span
.tag.today
today
.data
%h4
=
@issue
.
title
.clear
-
if
@issue
.
author
==
@issue
.
assignee
=
image_tag
gravatar_icon
(
@issue
.
assignee_email
),
:width
=>
20
,
:style
=>
"padding:0 5px;"
=
@issue
.
assignee_name
-
else
=
image_tag
gravatar_icon
(
@issue
.
author_email
),
:width
=>
20
,
:style
=>
"padding:0 5px;"
=
@issue
.
author_name
→
=
image_tag
gravatar_icon
(
@issue
.
assignee_email
),
:width
=>
20
,
:style
=>
"padding:0 5px;"
=
@issue
.
assignee_name
.right
%cite
.cgray
=
@issue
.
created_at
.
stamp
(
"21 Aug 2011, 11:15pm"
)
.clear
-
if
can?
current_user
,
:write_issue
,
@issue
-
if
@issue
.
closed
=
link_to
'Reopen'
,
project_issue_path
(
@project
,
@issue
,
:issue
=>
{
:closed
=>
false
},
:status_only
=>
true
),
:method
=>
:put
,
:class
=>
"grey-button"
-
else
=
link_to
'Resolve'
,
project_issue_path
(
@project
,
@issue
,
:issue
=>
{
:closed
=>
true
},
:status_only
=>
true
),
:method
=>
:put
,
:class
=>
"grey-button"
.right
=
link_to
'Edit'
,
edit_project_issue_path
(
@project
,
@issue
),
:class
=>
"grey-button positive"
=
link_to
'Destroy'
,
[
@project
,
@issue
],
:confirm
=>
'Are you sure?'
,
:method
=>
:delete
,
:class
=>
"grey-button delete-issue negative"
,
:id
=>
"destroy_issue_
#{
@issue
.
id
}
"
.buttons
-
if
can?
current_user
,
:write_issue
,
@issue
-
if
@issue
.
closed
=
link_to
'Reopen'
,
project_issue_path
(
@project
,
@issue
,
:issue
=>
{
:closed
=>
false
},
:status_only
=>
true
),
:method
=>
:put
,
:class
=>
"grey-button"
-
else
=
link_to
'Resolve'
,
project_issue_path
(
@project
,
@issue
,
:issue
=>
{
:closed
=>
true
},
:status_only
=>
true
),
:method
=>
:put
,
:class
=>
"grey-button"
.right
=
link_to
'Edit'
,
edit_project_issue_path
(
@project
,
@issue
),
:class
=>
"grey-button positive"
.clear
%br
%br
-
unless
@commits
.
blank?
%table
.round-borders
%thead
%th
Unmerged Commits
-
@commits
.
each
do
|
commit
|
%tr
%td
=
image_tag
gravatar_icon
(
commit
.
author_email
),
:class
=>
"left"
,
:width
=>
20
,
:style
=>
"padding-right:5px;"
=
link_to
commit
.
id
.
to_s
,
project_commit_path
(
@project
,
:id
=>
commit
.
id
)
.right
=
time_ago_in_words
(
commit
.
created_at
)
ago
.issue_notes
=
render
"notes/notes"
.loading
{
:style
=>
"display:none;"
}
%center
=
image_tag
"ajax-loader.gif"
.clear
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录