Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
a30ce866
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,发现更多精彩内容 >>
提交
a30ce866
编写于
9月 10, 2013
作者:
D
Dmitriy Zaporozhets
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Improve commits list UI
上级
fa17712c
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
58 addition
and
75 deletion
+58
-75
app/assets/stylesheets/sections/commits.scss
app/assets/stylesheets/sections/commits.scss
+46
-62
app/views/projects/commits/_commit.html.haml
app/views/projects/commits/_commit.html.haml
+11
-13
app/views/projects/commits/_commits.html.haml
app/views/projects/commits/_commits.html.haml
+1
-0
未找到文件。
app/assets/stylesheets/sections/commits.scss
浏览文件 @
a30ce866
...
...
@@ -345,46 +345,6 @@
}
/**
* COMMIT ROW
*/
.commit
{
.browse_code_link_holder
{
float
:
right
;
}
.committed_ago
{
float
:
right
;
@extend
.cgray
;
}
.notes_count
{
float
:
right
;
margin-right
:
10px
;
}
code
{
background
:
#FCEEC1
;
color
:
$style_color
;
}
.commit_short_id
{
float
:
left
;
@extend
.lined
;
min-width
:
65px
;
font-family
:
$monospace_font
;
}
.row_title
{
font-weight
:
bold
;
color
:
#444
;
&
:hover
{
color
:
#444
;
text-decoration
:
underline
;
}
}
}
.file-stats
a
{
color
:
$style_color
;
}
...
...
@@ -472,24 +432,6 @@
line-height
:
2
;
}
li
.commit
{
.avatar
{
width
:
24px
;
top
:
-5px
;
margin-right
:
5px
;
margin-left
:
10px
;
}
code
{
padding
:
2px
2px
0
;
margin-top
:
-2px
;
&
:hover
{
color
:
black
;
border
:
1px
solid
#ccc
;
}
}
}
.commit-breadcrumb
{
padding
:
0
;
}
...
...
@@ -506,8 +448,50 @@ li.commit {
}
}
.commits-row
{
padding-bottom
:
10px
;
margin-bottom
:
10px
;
border-bottom
:
1px
solid
#DDD
;
.lists-separator
{
margin
:
10px
0
;
border-top
:
1px
dashed
#CCC
;
}
/**
* COMMIT ROW
*/
li
.commit
{
padding
:
8px
;
.commit-row-title
{
font-size
:
14px
;
margin-bottom
:
2px
;
.notes_count
{
float
:
right
;
margin-right
:
10px
;
}
.commit_short_id
{
float
:
left
;
min-width
:
65px
;
font-family
:
$monospace_font
;
}
.commit-row-message
{
color
:
#555
;
font-weight
:
bolder
;
&
:hover
{
color
:
#444
;
text-decoration
:
underline
;
}
}
}
.commit-row-info
{
a
{
color
:
#777
;
}
.committed_ago
{
float
:
right
;
@extend
.cgray
;
}
}
}
app/views/projects/commits/_commit.html.haml
浏览文件 @
a30ce866
%li
.commit
.browse_code_link_holder
%p
%strong
=
link_to
"Browse Code »"
,
project_tree_path
(
project
,
commit
),
class:
"right"
%p
.commit-row-title
=
link_to
commit
.
short_id
(
8
),
project_commit_path
(
project
,
commit
),
class:
"commit_short_id"
=
commit_author_link
(
commit
,
avatar:
true
,
size:
24
)
=
link_to_gfm
truncate
(
commit
.
title
,
length:
70
),
project_commit_path
(
project
,
commit
.
id
),
class:
"row_title"
%time
.committed_ago
{
datetime:
commit
.
committed_date
,
title:
commit
.
committed_date
.
stamp
(
"Aug 21, 2011 9:23pm"
)
}
=
time_ago_in_words
(
commit
.
committed_date
)
ago
%span
.notes_count
=
link_to_gfm
truncate
(
commit
.
title
,
length:
70
),
project_commit_path
(
project
,
commit
.
id
),
class:
"commit-row-message"
=
link_to
"Browse Code »"
,
project_tree_path
(
project
,
commit
),
class:
"pull-right"
.notes_count
-
notes
=
project
.
notes
.
for_commit_id
(
commit
.
id
)
-
if
notes
.
any?
%span
.badge.badge-info
%i
.icon-comment
=
notes
.
count
.commit-row-info
=
commit_author_link
(
commit
,
avatar:
true
,
size:
16
)
%time
.committed_ago
{
datetime:
commit
.
committed_date
,
title:
commit
.
committed_date
.
stamp
(
"Aug 21, 2011 9:23pm"
)
}
=
time_ago_in_words
(
commit
.
committed_date
)
ago
app/views/projects/commits/_commits.html.haml
浏览文件 @
a30ce866
...
...
@@ -8,3 +8,4 @@
.span10
%ul
.well-list
=
render
commits
,
project:
@project
%hr
.lists-separator
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录