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
Léo-Paul Géneau
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 @@
}
.commit-actions
{
@media
(
min-width
:
$screen-
md
-min
)
{
@media
(
min-width
:
$screen-
sm
-min
)
{
float
:
right
;
margin-left
:
$gl-padding
;
}
...
...
@@ -69,7 +69,11 @@
}
.commit
{
padding
:
10px
0
10px
55px
;
padding
:
10px
0
10px
;
@media
(
min-width
:
$screen-sm-min
)
{
padding-left
:
55px
;
}
&
:not
(
:last-child
)
{
border-bottom
:
1px
solid
#eee
;
...
...
@@ -78,6 +82,7 @@
a
,
button
{
color
:
$gl-dark-link-color
;
vertical-align
:
baseline
;
}
.avatar
{
...
...
@@ -86,7 +91,10 @@
.item-title
{
display
:
inline-block
;
max-width
:
70%
;
@media
(
min-width
:
$screen-sm-min
)
{
max-width
:
70%
;
}
}
.commit-row-description
{
...
...
app/helpers/commits_helper.rb
View file @
97cee7e2
...
...
@@ -23,7 +23,7 @@ module CommitsHelper
source_email
=
clean
(
commit
.
send
"
#{
options
[
:source
]
}
_email"
.
to_sym
)
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
def
image_diff_class
(
diff
)
...
...
app/views/projects/commits/_commit.html.haml
View file @
97cee7e2
...
...
@@ -13,10 +13,12 @@
.commit-row-title
%span
.item-title
=
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?
%a
.text-expander.js-toggle-button
...
%a
.text-expander.
hidden-xs.
js-toggle-button
...
.commit-actions
.commit-actions
.hidden-xs
-
if
commit
.
status
=
render_commit_status
(
commit
,
cssclass:
'btn 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