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
iv
gitlab-ce
Commits
b84b485b
Commit
b84b485b
authored
Feb 15, 2012
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
better commits list style
parent
ccfeddec
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
4 deletions
+18
-4
app/assets/stylesheets/commits.css.scss
app/assets/stylesheets/commits.css.scss
+13
-0
app/views/commits/_commit.html.haml
app/views/commits/_commit.html.haml
+5
-4
No files found.
app/assets/stylesheets/commits.css.scss
View file @
b84b485b
...
@@ -145,3 +145,16 @@ ul.bordered-list li:last-child { border:none }
...
@@ -145,3 +145,16 @@ ul.bordered-list li:last-child { border:none }
left
:
0
;
left
:
0
;
margin-right
:
10px
;
margin-right
:
10px
;
}
}
li
.commit
{
.avatar
{
width
:
24px
;
top
:
-3px
;
margin-right
:
10px
;
margin-left
:
10px
;
}
code
{
padding
:
4px
;
}
}
app/views/commits/_commit.html.haml
View file @
b84b485b
%li
.wll
%li
.wll
.commit
.right.span2
.right.span2
=
link_to
"Browse Code"
,
tree_project_ref_path
(
@project
,
commit
.
id
),
:class
=>
"btn small right"
=
link_to
"Browse Code"
,
tree_project_ref_path
(
@project
,
commit
.
id
),
:class
=>
"btn small right"
=
link_to
project_commit_path
(
@project
,
:id
=>
commit
.
id
)
do
=
link_to
project_commit_path
(
@project
,
:id
=>
commit
.
id
)
do
%p
%p
%code
=
commit
.
id
.
to_s
[
0
..
10
]
%code
.left
=
commit
.
id
.
to_s
[
0
..
10
]
%strong
=
commit
.
author_name
–
–
=
image_tag
gravatar_icon
(
commit
.
author_email
),
:class
=>
""
,
:width
=>
16
=
image_tag
gravatar_icon
(
commit
.
author_email
),
:class
=>
"
avatar
"
,
:width
=>
16
=
truncate
(
commit
.
safe_message
,
:length
=>
50
)
%span
=
truncate
(
commit
.
safe_message
,
:length
=>
50
)
rescue
"--broken encoding"
%span
.right.cgray
%span
.right.cgray
=
time_ago_in_words
(
commit
.
committed_date
)
=
time_ago_in_words
(
commit
.
committed_date
)
...
...
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