Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
9ad444f0
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 搜索 >>
提交
9ad444f0
编写于
10月 19, 2011
作者:
G
gitlabhq
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
dashboard updated, links from project to dasdhboard
上级
69e0ea62
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
31 addition
and
6 deletion
+31
-6
app/assets/stylesheets/projects.css.scss
app/assets/stylesheets/projects.css.scss
+20
-4
app/helpers/projects_helper.rb
app/helpers/projects_helper.rb
+1
-0
app/views/projects/_recent_messages.html.haml
app/views/projects/_recent_messages.html.haml
+8
-1
app/views/projects/_tile.html.haml
app/views/projects/_tile.html.haml
+1
-1
app/views/snippets/show.html.haml
app/views/snippets/show.html.haml
+1
-0
未找到文件。
app/assets/stylesheets/projects.css.scss
浏览文件 @
9ad444f0
...
...
@@ -575,8 +575,6 @@ tbody tr:nth-child(2n) td, tbody tr.even td {
border-bottom
:
2px
solid
#ffbbbb
;
span
{
background
:
#ffbbbb
;
color
:black
;
padding
:
2px
;
}
}
&
.dash_commit
{
...
...
@@ -584,17 +582,35 @@ tbody tr:nth-child(2n) td, tbody tr.even td {
span
{
background
:
#bbbbff
;
color
:black
;
padding
:
2px
;
}
}
&
.dash_snippet
{
border-bottom
:
2px
solid
#bbffbb
;
span
{
background
:
#bbffbb
;
}
}
span
{
border
:
1px
solid
#aaa
;
color
:black
;
padding
:
1px
4px
;
}
h4
{
margin-bottom
:
3px
;
}
}
.message
{
.author
{
background
:
#eaeaea
;
color
:
#333
;
border
:
1px
solid
#aaa
;
padding
:
1px
2px
;
margin-right
:
5px
;
}
}
app/helpers/projects_helper.rb
浏览文件 @
9ad444f0
...
...
@@ -8,6 +8,7 @@ module ProjectsHelper
case
type
when
"Issue"
then
@project
.
issues
.
find
(
id
)
when
"Commit"
then
@project
.
repo
.
commits
(
id
).
first
when
"Snippet"
then
@project
.
snippets
.
find
(
id
)
else
true
end
...
...
app/views/projects/_recent_messages.html.haml
浏览文件 @
9ad444f0
...
...
@@ -10,6 +10,11 @@
-
item_code
=
issue
.
author
.
email
-
link_item_name
=
truncate
(
issue
.
title
,
:length
=>
50
)
-
link_to_item
=
project_issue_path
(
@project
,
issue
)
-
when
"Snippet"
-
css_class
=
"dash_snippet"
-
item_code
=
parent
.
author
.
email
-
link_item_name
=
parent
.
title
-
link_to_item
=
project_snippet_path
(
@project
,
parent
)
-
when
"Commit"
-
css_class
=
"dash_commit"
-
commit
=
parent
...
...
@@ -33,13 +38,15 @@
%div
.message
=
image_tag
gravatar_icon
(
note
.
author
.
email
),
:class
=>
"left"
,
:width
=>
24
,
:style
=>
"padding-right:5px;"
%p
{
:style
=>
"margin-bottom: 3px;"
}
%span
.author
=
note
.
author
.
name
=
link_to
truncate
(
note
.
note
,
:length
=>
200
),
link_to_item
+
"#note_
#{
note
.
id
}
"
-
if
note
.
attachment
.
url
%br
Attachment:
=
link_to
note
.
attachment_identifier
,
note
.
attachment
.
url
%br
%span
-#
%span
%span
[ #{note.author.name} ]
%cite
...
...
app/views/projects/_tile.html.haml
浏览文件 @
9ad444f0
...
...
@@ -4,7 +4,7 @@
%div
{
:class
=>
"project"
,
:url
=>
project_path
(
project
)
}
%h2
=
image_tag
gravatar_icon
(
project
.
name
),
:class
=>
"left"
,
:width
=>
40
,
:style
=>
"padding-right:5px;"
=
"/"
+
project
.
code
=
link_to
(
"/"
+
project
.
code
),
project_path
(
project
),
:style
=>
"text-decoration:none"
%p
=
project
.
name
%p
=
project
.
url_to_repo
-#%p
...
...
app/views/snippets/show.html.haml
浏览文件 @
9ad444f0
...
...
@@ -15,6 +15,7 @@
=
link_to
'Edit'
,
edit_project_snippet_path
(
@project
,
@snippet
),
:class
=>
"lbutton positive"
-
if
can?
(
current_user
,
:admin_snippet
,
@project
)
||
@snippet
.
author
==
current_user
=
link_to
'Destroy'
,
[
@project
,
@snippet
],
:confirm
=>
'Are you sure?'
,
:method
=>
:delete
,
:class
=>
"lbutton delete-snippet negative"
,
:id
=>
"destroy_snippet_
#{
@snippet
.
id
}
"
.clear
%br
.snippet_notes
=
render
"notes/notes"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录