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
Boxiang Sun
gitlab-ce
Commits
97cee7e2
Commit
97cee7e2
authored
May 31, 2016
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improved spacing on mobile
parent
48726e9d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
6 deletions
+16
-6
app/assets/stylesheets/pages/commits.scss
app/assets/stylesheets/pages/commits.scss
+11
-3
app/helpers/commits_helper.rb
app/helpers/commits_helper.rb
+1
-1
app/views/projects/commits/_commit.html.haml
app/views/projects/commits/_commit.html.haml
+4
-2
No files found.
app/assets/stylesheets/pages/commits.scss
View file @
97cee7e2
...
@@ -57,7 +57,7 @@
...
@@ -57,7 +57,7 @@
}
}
.commit-actions
{
.commit-actions
{
@media
(
min-width
:
$screen-
md
-min
)
{
@media
(
min-width
:
$screen-
sm
-min
)
{
float
:
right
;
float
:
right
;
margin-left
:
$gl-padding
;
margin-left
:
$gl-padding
;
}
}
...
@@ -69,7 +69,11 @@
...
@@ -69,7 +69,11 @@
}
}
.commit
{
.commit
{
padding
:
10px
0
10px
55px
;
padding
:
10px
0
10px
;
@media
(
min-width
:
$screen-sm-min
)
{
padding-left
:
55px
;
}
&
:not
(
:last-child
)
{
&
:not
(
:last-child
)
{
border-bottom
:
1px
solid
#eee
;
border-bottom
:
1px
solid
#eee
;
...
@@ -78,6 +82,7 @@
...
@@ -78,6 +82,7 @@
a
,
a
,
button
{
button
{
color
:
$gl-dark-link-color
;
color
:
$gl-dark-link-color
;
vertical-align
:
baseline
;
}
}
.avatar
{
.avatar
{
...
@@ -86,7 +91,10 @@
...
@@ -86,7 +91,10 @@
.item-title
{
.item-title
{
display
:
inline-block
;
display
:
inline-block
;
max-width
:
70%
;
@media
(
min-width
:
$screen-sm-min
)
{
max-width
:
70%
;
}
}
}
.commit-row-description
{
.commit-row-description
{
...
...
app/helpers/commits_helper.rb
View file @
97cee7e2
...
@@ -23,7 +23,7 @@ module CommitsHelper
...
@@ -23,7 +23,7 @@ module CommitsHelper
source_email
=
clean
(
commit
.
send
"
#{
options
[
:source
]
}
_email"
.
to_sym
)
source_email
=
clean
(
commit
.
send
"
#{
options
[
:source
]
}
_email"
.
to_sym
)
person_email
=
user
.
try
(
:email
)
||
source_email
person_email
=
user
.
try
(
:email
)
||
source_email
image_tag
(
avatar_icon
(
person_email
,
options
[
:size
]),
class:
"avatar
#{
"s
#{
options
[
:size
]
}
"
if
options
[
:size
]
}
"
,
width:
options
[
:size
],
alt:
""
)
image_tag
(
avatar_icon
(
person_email
,
options
[
:size
]),
class:
"avatar
#{
"s
#{
options
[
:size
]
}
"
if
options
[
:size
]
}
hidden-xs
"
,
width:
options
[
:size
],
alt:
""
)
end
end
def
image_diff_class
(
diff
)
def
image_diff_class
(
diff
)
...
...
app/views/projects/commits/_commit.html.haml
View file @
97cee7e2
...
@@ -13,10 +13,12 @@
...
@@ -13,10 +13,12 @@
.commit-row-title
.commit-row-title
%span
.item-title
%span
.item-title
=
link_to_gfm
commit
.
title
,
namespace_project_commit_path
(
project
.
namespace
,
project
,
commit
.
id
),
class:
"commit-row-message"
=
link_to_gfm
commit
.
title
,
namespace_project_commit_path
(
project
.
namespace
,
project
,
commit
.
id
),
class:
"commit-row-message"
-
if
commit
.
status
=
render_commit_status
(
commit
,
cssclass:
'visible-xs-inline'
)
-
if
commit
.
description?
-
if
commit
.
description?
%a
.text-expander.js-toggle-button
...
%a
.text-expander.
hidden-xs.
js-toggle-button
...
.commit-actions
.commit-actions
.hidden-xs
-
if
commit
.
status
-
if
commit
.
status
=
render_commit_status
(
commit
,
cssclass:
'btn btn-transparent'
)
=
render_commit_status
(
commit
,
cssclass:
'btn btn-transparent'
)
=
clipboard_button_with_class
({
clipboard_text:
commit
.
id
},
css_class:
'btn-transparent'
)
=
clipboard_button_with_class
({
clipboard_text:
commit
.
id
},
css_class:
'btn-transparent'
)
...
...
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