Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
gitlab-ce
Commits
fe7bef3a
Commit
fe7bef3a
authored
Jul 18, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
squash commit summary in one sentence
parent
ba33ed41
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
32 additions
and
28 deletions
+32
-28
app/assets/stylesheets/common.scss
app/assets/stylesheets/common.scss
+0
-17
app/assets/stylesheets/gitlab_bootstrap/blocks.scss
app/assets/stylesheets/gitlab_bootstrap/blocks.scss
+0
-1
app/assets/stylesheets/sections/commits.scss
app/assets/stylesheets/sections/commits.scss
+23
-0
app/views/projects/commit/show.html.haml
app/views/projects/commit/show.html.haml
+0
-8
app/views/projects/commits/_diffs.html.haml
app/views/projects/commits/_diffs.html.haml
+9
-2
No files found.
app/assets/stylesheets/common.scss
View file @
fe7bef3a
...
...
@@ -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
{
color
:
#999
;
font-size
:
90%
;
...
...
app/assets/stylesheets/gitlab_bootstrap/blocks.scss
View file @
fe7bef3a
...
...
@@ -62,7 +62,6 @@
.ui-box-body
{
border
:
none
;
font-size
:
12px
;
background-color
:
#f5f5f5
;
border
:
none
;
border-top
:
1px
solid
#eee
;
...
...
app/assets/stylesheets/sections/commits.scss
View file @
fe7bef3a
...
...
@@ -441,3 +441,26 @@
.ui-box.commit-box
{
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
;
}
}
}
app/views/projects/commit/show.html.haml
View file @
fe7bef3a
=
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/notes/notes_with_form"
app/views/projects/commits/_diffs.html.haml
View file @
fe7bef3a
...
...
@@ -7,8 +7,15 @@
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"
%p
.cgray
Showing
#{
pluralize
(
diffs
.
count
,
"changed file"
)
}
%p
.commit-stat-summary
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
=
render
"projects/commits/diff_head"
,
diffs:
diffs
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment