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
b60b7b2e
Commit
b60b7b2e
authored
Dec 01, 2011
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
restyle commit show page pt1
parent
fdc81596
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
25 deletions
+33
-25
app/assets/stylesheets/application.css
app/assets/stylesheets/application.css
+6
-0
app/assets/stylesheets/commits.css.scss
app/assets/stylesheets/commits.css.scss
+6
-1
app/views/commits/show.html.haml
app/views/commits/show.html.haml
+21
-24
No files found.
app/assets/stylesheets/application.css
View file @
b60b7b2e
...
@@ -50,3 +50,9 @@
...
@@ -50,3 +50,9 @@
padding
:
0
!important
;
padding
:
0
!important
;
}
}
/** COMMIT BLOCK **/
.commit-title
{
display
:
block
;}
.commit-title
{
margin-bottom
:
10px
}
.commit-author
{
color
:
#999
;
font-weight
:
normal
;
font-style
:
italic
;}
.commit-author
strong
{
font-weight
:
bold
;
font-style
:
normal
;}
app/assets/stylesheets/commits.css.scss
View file @
b60b7b2e
...
@@ -30,13 +30,18 @@
...
@@ -30,13 +30,18 @@
.old_line
,
.new_line
{
.old_line
,
.new_line
{
background
:
#ECECEC
;
background
:
#ECECEC
;
color
:
#777
;
color
:
#777
;
width
:
3
0
px
;
width
:
3
5
px
;
float
:left
;
float
:left
;
padding
:
0px
5px
;
padding
:
0px
5px
;
border-right
:
1px
solid
#ccc
;
border-right
:
1px
solid
#ccc
;
text-align
:right
;
}
}
}
}
pre
.commit_message
{
pre
.commit_message
{
white-space
:
pre-wrap
;
white-space
:
pre-wrap
;
font-family
:
"Helvetica"
,
sans-serif
;
color
:
#555
;
font-weight
:bold
;
font-size
:
15px
;
}
}
app/views/commits/show.html.haml
View file @
b60b7b2e
-
content_for
(
:body_class
,
"project-page commits-page"
)
-
content_for
(
:body_class
,
"project-page commits-page"
)
%h2
.icon
.commit
%span
%span
.commit-info
%d
=
link_to
tree_project_ref_path
(
@project
,
@commit
.
id
)
do
=
"
#{
truncate
(
@commit
.
safe_message
,
:length
=>
50
)
}
"
%data
.commit-button
.right
Browse Code
=
link_to
'Browse Code'
,
tree_project_ref_path
(
@project
,
@commit
.
id
),
:class
=>
"browse-code button yellow"
%i
%table
.round-borders
-
if
@commit
.
author_email
%thead
=
image_tag
gravatar_icon
(
@commit
.
author_email
),
:class
=>
"left"
,
:width
=>
40
,
:style
=>
"padding-right:5px;"
%th
{
:colspan
=>
2
}
Details
-
else
%tr
=
image_tag
"no_avatar.png"
,
:class
=>
"left"
,
:width
=>
40
,
:style
=>
"padding-right:5px;"
%td
ID
%span
.commit-title
%td
=
@commit
.
id
%strong
%tr
=
truncate
(
@commit
.
id
.
to_s
,
:length
=>
60
)
%td
Author
%span
.commit-author
%td
=
@commit
.
author_name
%strong
=
@commit
.
author_name
%tr
=
@commit
.
created_at
.
stamp
(
"Aug 21, 2011 9:23pm"
)
%td
Committed Date
%td
=
@commit
.
created_at
.
stamp
(
"Aug 21, 2011, 11:15pm"
)
%hr
%tr
%pre
.commit_message
%td
Message
%td
%pre
.commit_message
=
preserve
@commit
.
safe_message
=
preserve
@commit
.
safe_message
.clear
.clear
%br
%br
=
render
"commits/diff"
=
render
"commits/diff"
...
...
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