Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
6d6fb561
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,发现更多精彩内容 >>
提交
6d6fb561
编写于
11月 01, 2016
作者:
D
Dimitrie Hoekstra
提交者:
Annabel Dunstone Gray
11月 04, 2016
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
added various changes to commit title area
上级
e4c05de7
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
83 addition
and
46 deletion
+83
-46
app/assets/stylesheets/pages/commit.scss
app/assets/stylesheets/pages/commit.scss
+36
-0
app/views/projects/commit/_commit_box.html.haml
app/views/projects/commit/_commit_box.html.haml
+47
-46
未找到文件。
app/assets/stylesheets/pages/commit.scss
浏览文件 @
6d6fb561
...
...
@@ -36,6 +36,42 @@
padding
:
10px
0
;
margin-bottom
:
0
;
.commitable-meta
{
display
:
inline-block
;
line-height
:
18px
;
}
.commit-hash-full
{
@media
(
max-width
:
$screen-md-min
)
{
width
:
80px
;
white-space
:
nowrap
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
display
:
inline-block
;
vertical-align
:
bottom
;
}
}
.commitable-actions
{
@media
(
min-width
:
$screen-sm
)
{
float
:
right
;
padding-top
:
0
;
}
.dropdown
{
@media
(
max-width
:
$screen-sm
)
{
width
:
100%
;
margin-top
:
10px
;
}
}
.dropdown-toggle
{
@media
(
max-width
:
$screen-sm
)
{
width
:
100%
;
}
}
}
.commit-options-dropdown-caret
{
@media
(
max-width
:
$screen-sm
)
{
margin-left
:
0
;
...
...
app/views/projects/commit/_commit_box.html.haml
浏览文件 @
6d6fb561
.commit-info-row.commit-info-row-header
%span
.hidden-xs.hidden-sm
Commit
=
link_to
@commit
.
short_id
,
namespace_project_commit_path
(
@project
.
namespace
,
@project
,
@commit
),
class:
"monospace js-details-short"
=
link_to
(
"#"
,
class:
"js-details-expand hidden-xs hidden-sm"
)
do
%span
.text-expander
\...
%span
.js-details-content.hide
=
link_to
@commit
.
id
,
namespace_project_commit_path
(
@project
.
namespace
,
@project
,
@commit
),
class:
"monospace hidden-xs hidden-sm"
=
clipboard_button
(
clipboard_text:
@commit
.
id
)
%span
.hidden-xs
authored
#{
time_ago_with_tooltip
(
@commit
.
authored_date
)
}
%span
by
=
author_avatar
(
@commit
,
size:
24
)
%strong
=
commit_author_link
(
@commit
,
avatar:
true
,
size:
24
)
-
if
@commit
.
different_committer?
%span
.light
Committed by
.commitable-meta
%strong
Commit
%strong
.monospace.js-details-short
=
@commit
.
short_id
=
link_to
(
"#"
,
class:
"js-details-expand hidden-xs hidden-sm"
)
do
%span
.text-expander
\...
%span
.js-details-content.hide
%strong
.monospace.commit-hash-full
=
@commit
.
id
=
clipboard_button
(
clipboard_text:
@commit
.
id
)
%span
.hidden-xs
authored
#{
time_ago_with_tooltip
(
@commit
.
authored_date
)
}
%span
by
=
author_avatar
(
@commit
,
size:
24
)
%strong
=
commit_committer_link
(
@commit
,
avatar:
true
,
size:
24
)
#{
time_ago_with_tooltip
(
@commit
.
committed_date
)
}
.pull-right.commit-action-buttons
-
if
defined?
(
@notes_count
)
&&
@notes_count
>
0
%span
.btn.disabled.btn-grouped.hidden-xs.append-right-10
=
icon
(
'comment'
)
=
@notes_count
=
link_to
namespace_project_tree_path
(
@project
.
namespace
,
@project
,
@commit
),
class:
"btn btn-default append-right-10 hidden-xs hidden-sm"
do
Browse Files
.dropdown.inline
%a
.btn.btn-default.dropdown-toggle
{
data:
{
toggle:
"dropdown"
}
}
%span
.hidden-xs
Options
=
icon
(
'caret-down'
,
class:
".commit-options-dropdown-caret"
)
%ul
.dropdown-menu.dropdown-menu-align-right
%li
.visible-xs-block.visible-sm-block
=
link_to
namespace_project_tree_path
(
@project
.
namespace
,
@project
,
@commit
)
do
Browse Files
-
unless
@commit
.
has_been_reverted?
(
current_user
)
=
commit_author_link
(
@commit
,
avatar:
true
,
size:
24
)
-
if
@commit
.
different_committer?
%span
.light
Committed by
%strong
=
commit_committer_link
(
@commit
,
avatar:
true
,
size:
24
)
#{
time_ago_with_tooltip
(
@commit
.
committed_date
)
}
.commitable-actions
.commit-action-buttons
-
if
defined?
(
@notes_count
)
&&
@notes_count
>
0
%span
.btn.disabled.btn-grouped.hidden-xs.append-right-10
=
icon
(
'comment'
)
=
@notes_count
=
link_to
namespace_project_tree_path
(
@project
.
namespace
,
@project
,
@commit
),
class:
"btn btn-default append-right-10 hidden-xs hidden-sm"
do
Browse Files
.dropdown.inline
%a
.btn.btn-default.dropdown-toggle
{
data:
{
toggle:
"dropdown"
}
}
%span
Options
=
icon
(
'caret-down'
,
class:
".commit-options-dropdown-caret"
)
%ul
.dropdown-menu.dropdown-menu-align-right
%li
.visible-xs-block.visible-sm-block
=
link_to
namespace_project_tree_path
(
@project
.
namespace
,
@project
,
@commit
)
do
Browse Files
-
unless
@commit
.
has_been_reverted?
(
current_user
)
%li
.clearfix
=
revert_commit_link
(
@commit
,
namespace_project_commit_path
(
@project
.
namespace
,
@project
,
@commit
.
id
),
has_tooltip:
false
)
%li
.clearfix
=
cherry_pick_commit_link
(
@commit
,
namespace_project_commit_path
(
@project
.
namespace
,
@project
,
@commit
.
id
),
has_tooltip:
false
)
%li
.clearfix
=
revert_commit_link
(
@commit
,
namespace_project_commit_path
(
@project
.
namespace
,
@project
,
@commit
.
id
),
has_tooltip:
false
)
%li
.clearfix
=
cherry_pick_commit_link
(
@commit
,
namespace_project_commit_path
(
@project
.
namespace
,
@project
,
@commit
.
id
),
has_tooltip:
false
)
%li
.clearfix
=
link_to
"Tag"
,
new_namespace_project_tag_path
(
@project
.
namespace
,
@project
,
ref:
@commit
)
%li
.divider
%li
.dropdown-header
Download
-
unless
@commit
.
parents
.
length
>
1
%li
=
link_to
"Email Patches"
,
namespace_project_commit_path
(
@project
.
namespace
,
@project
,
@commit
,
format: :patch
)
%li
=
link_to
"Plain Diff"
,
namespace_project_commit_path
(
@project
.
namespace
,
@project
,
@commit
,
format: :diff
)
=
link_to
"Tag"
,
new_namespace_project_tag_path
(
@project
.
namespace
,
@project
,
ref:
@commit
)
%li
.divider
%li
.dropdown-header
Download
-
unless
@commit
.
parents
.
length
>
1
%li
=
link_to
"Email Patches"
,
namespace_project_commit_path
(
@project
.
namespace
,
@project
,
@commit
,
format: :patch
)
%li
=
link_to
"Plain Diff"
,
namespace_project_commit_path
(
@project
.
namespace
,
@project
,
@commit
,
format: :diff
)
.commit-box
%h3
.commit-title
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录