Commit fe7bef3a authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

squash commit summary in one sentence

parent ba33ed41
...@@ -142,23 +142,6 @@ input[type=text] { ...@@ -142,23 +142,6 @@ input[type=text] {
} }
} }
li.commit {
.avatar {
width: 24px;
top:-5px;
margin-right: 10px;
margin-left: 10px;
}
code {
padding: 2px 2px 0;
margin-top: -2px;
&:hover {
color: black;
border: 1px solid #ccc;
}
}
}
p.time { p.time {
color: #999; color: #999;
font-size: 90%; font-size: 90%;
......
...@@ -62,7 +62,6 @@ ...@@ -62,7 +62,6 @@
.ui-box-body { .ui-box-body {
border: none; border: none;
font-size: 12px;
background-color: #f5f5f5; background-color: #f5f5f5;
border: none; border: none;
border-top: 1px solid #eee; border-top: 1px solid #eee;
......
...@@ -441,3 +441,26 @@ ...@@ -441,3 +441,26 @@
.ui-box.commit-box { .ui-box.commit-box {
margin-top: 0; margin-top: 0;
} }
.commit-stat-summary {
color: #666;
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;
}
}
}
= render "commit_box" = render "commit_box"
- unless @commit.has_zero_stats?
%p.pull-right.cgray
This commit has
%span.cgreen #{@commit.stats.additions} additions
and
%span.cred #{@commit.stats.deletions} deletions
= render "projects/commits/diffs", diffs: @commit.diffs = render "projects/commits/diffs", diffs: @commit.diffs
= render "projects/notes/notes_with_form" = render "projects/notes/notes_with_form"
...@@ -7,8 +7,15 @@ ...@@ -7,8 +7,15 @@
But if you still want to see diff But if you still want to see diff
= link_to "click this link", project_commit_path(@project, @commit, force_show_diff: true), class: "underlined_link" = link_to "click this link", project_commit_path(@project, @commit, force_show_diff: true), class: "underlined_link"
%p.cgray %p.commit-stat-summary
Showing #{pluralize(diffs.count, "changed file")} Showing
%strong.cdark #{pluralize(diffs.count, "changed file")}
- if current_controller?(:commit)
- unless @commit.has_zero_stats?
with
%strong.cgreen #{@commit.stats.additions} additions
and
%strong.cred #{@commit.stats.deletions} deletions
.file-stats .file-stats
= render "projects/commits/diff_head", diffs: diffs = render "projects/commits/diff_head", diffs: diffs
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment