Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
c07d3dfc
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,发现更多精彩内容 >>
提交
c07d3dfc
编写于
11月 07, 2011
作者:
G
gitlabhq
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
issue restyle example
上级
06e91674
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
53 addition
and
22 deletion
+53
-22
app/assets/stylesheets/projects.css.scss
app/assets/stylesheets/projects.css.scss
+24
-0
app/views/issues/_issues.html.haml
app/views/issues/_issues.html.haml
+1
-6
app/views/issues/_show.html.haml
app/views/issues/_show.html.haml
+28
-16
未找到文件。
app/assets/stylesheets/projects.css.scss
浏览文件 @
c07d3dfc
...
...
@@ -679,6 +679,30 @@ body.project-page table .commit {
}
}
#notes-list
.note
.delete-note
{
display
:none
;
}
#notes-list
.note
:hover
.delete-note
{
display
:block
;
}
#issues-table-holder
.issue
.action-links
{
display
:none
;
a
{
margin-left
:
10px
;
}
}
.issue-number
{
float
:
left
;
border-radius
:
5px
;
text-shadow
:
none
;
background
:
rgba
(
0
,
0
,
0
,
0
.12
);
text-align
:
center
;
padding
:
14px
8px
;
width
:
40px
;
margin-right
:
10px
;
color
:
#444
;
}
#issues-table-holder
.issue
:hover
.action-links
{
display
:block
;
}
body
.project-page
#notes-list
.note
{
padding
:
10px
;
border-bottom
:
1px
solid
#eee
;
overflow
:
hidden
;
display
:
block
;}
body
.project-page
#notes-list
.note
{
padding
:
10px
;
border-bottom
:
1px
solid
#eee
;
overflow
:
hidden
;
display
:
block
;}
body
.project-page
#notes-list
.note
img
{
float
:
left
;
margin-right
:
10px
;}
...
...
app/views/issues/_issues.html.haml
浏览文件 @
c07d3dfc
%table
.round-borders
#issues-table
%thead
-
if
can?
(
current_user
,
:admin_issue
,
@project
)
&&
!
params
[
:f
]
||
params
[
:f
]
==
"0"
%th
%th
Assignee
%th
ID
%th
Title
%th
Closed?
%th
Issues
-
@issues
.
critical
.
each
do
|
issue
|
=
render
(
:partial
=>
'show'
,
:locals
=>
{
:issue
=>
issue
})
...
...
app/views/issues/_show.html.haml
浏览文件 @
c07d3dfc
%tr
{
:id
=>
dom_id
(
issue
),
:class
=>
"issue #{issue.critical ? "
critical
" : ""}"
,
:url
=>
project_issue_path
(
@project
,
issue
)
}
-
if
can?
(
current_user
,
:admin_issue
,
@project
)
&&
(
!
params
[
:f
]
||
params
[
:f
]
==
"0"
)
-
#-
if can?(current_user, :admin_issue, @project) && (!params[:f] || params[:f] == "0")
%td
= image_tag "move.png" , :class => [:handle, :left]
%td
=
image_tag
gravatar_icon
(
issue
.
assignee
.
email
),
:class
=>
"left"
,
:width
=>
40
,
:style
=>
"padding:0 5px;"
=
issue
.
assignee
.
name
%td
##{issue.id}
%td
=
truncate
(
html_escape
(
issue
.
title
),
:length
=>
200
)
%strong
.issue-number
=
"#
#{
issue
.
id
}
"
%span
=
truncate
(
html_escape
(
issue
.
title
),
:length
=>
fixed_mode?
?
100
:
200
)
%br
%br
%div
.note-author
%strong
=
issue
.
assignee
.
name
%cite
.cgray
=
time_ago_in_words
(
issue
.
updated_at
)
ago
-
if
issue
.
critical
%span
.tag.high
critical
-
if
issue
.
today?
%span
.tag.today
today
.right
-
if
can?
(
current_user
,
:admin_issue
,
@project
)
||
issue
.
author
==
current_user
.right.action-links
-
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
=>
"cgray"
,
:remote
=>
true
-
else
=
link_to
'Resolve'
,
project_issue_path
(
@project
,
issue
,
:issue
=>
{
:closed
=>
true
},
:status_only
=>
true
),
:method
=>
:put
,
:class
=>
"cgray"
,
:remote
=>
true
-
if
can?
current_user
,
:write_issue
,
issue
=
link_to
'Edit'
,
edit_project_issue_path
(
@project
,
issue
),
:class
=>
"cgray"
,
:remote
=>
true
-
if
can?
(
current_user
,
:admin_issue
,
@project
)
||
issue
.
author
==
current_user
=
link_to
'Destroy'
,
[
@project
,
issue
],
:confirm
=>
'Are you sure?'
,
:method
=>
:delete
,
:remote
=>
true
,
:class
=>
"cred delete-issue negative"
,
:id
=>
"destroy_issue_
#{
issue
.
id
}
"
-#%td ##{issue.id}
-#%td
= truncate(html_escape(issue.title), :length => 200)
%br
%br
-#- if issue.author == current_user
-#%span.tag.yours yours
...
...
@@ -28,7 +40,7 @@
-#%span.tag.notes
-#= issue.notes.count
-#notes
%td
-#
%td
- if can? current_user, :write_issue, @project
= form_for([@project, issue], :remote => true) do |f|
= f.check_box :closed, :onclick => "$(this).parent().submit();"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录