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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
79b375e1
Commit
79b375e1
authored
May 24, 2016
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated some commit UI colors
Fixed issue with tree view styles
parent
8827eea8
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
20 deletions
+19
-20
app/assets/stylesheets/pages/commits.scss
app/assets/stylesheets/pages/commits.scss
+12
-13
app/assets/stylesheets/pages/tree.scss
app/assets/stylesheets/pages/tree.scss
+1
-1
app/helpers/button_helper.rb
app/helpers/button_helper.rb
+2
-2
app/views/projects/commits/_commit.html.haml
app/views/projects/commits/_commit.html.haml
+4
-4
No files found.
app/assets/stylesheets/pages/commits.scss
View file @
79b375e1
...
...
@@ -41,13 +41,17 @@
}
.text-expander
{
background
:
#eee
;
color
:
#555
;
background
:
$gray-light
;
color
:
$gl-gray-dark
;
padding
:
0
5px
;
cursor
:
pointer
;
margin-left
:
4px
;
border
:
1px
solid
$border-gray-dark
;
border-radius
:
$border-radius-default
;
margin-left
:
5px
;
&
:hover
{
background-color
:
#ddd
;
background-color
:
darken
(
$gray-light
,
10%
);
text-decoration
:
none
;
}
}
}
...
...
@@ -55,6 +59,7 @@
.commit-actions
{
@media
(
min-width
:
$screen-md-min
)
{
float
:
right
;
margin-left
:
$gl-padding
;
}
}
...
...
@@ -70,17 +75,11 @@
border-bottom
:
1px
solid
#eee
;
}
a
{
a
,
button
{
color
:
$gl-dark-link-color
;
}
.commit-link
{
&
:hover
{
color
:
$gl-link-color
;
text-decoration
:
none
;
}
}
.avatar
{
margin-left
:
-55px
;
}
...
...
@@ -94,7 +93,7 @@
font-size
:
14px
;
border-left
:
1px
solid
#eee
;
padding
:
10px
15px
;
margin
:
10px
0
10px
0
;
margin
:
10px
0
;
background
:
#f9f9f9
;
display
:
none
;
...
...
app/assets/stylesheets/pages/tree.scss
View file @
79b375e1
...
...
@@ -101,7 +101,7 @@
margin
:
0
;
.commit
{
padding
:
0
;
padding
:
0
0
0
55px
;
.commit-row-title
{
.commit-row-message
{
...
...
app/helpers/button_helper.rb
View file @
79b375e1
...
...
@@ -14,10 +14,10 @@ module ButtonHelper
# # => "<button class='...' data-clipboard-target='div#foo'>...</button>"
#
# See http://clipboardjs.com/#usage
def
clipboard_button
(
data
=
{})
def
clipboard_button
(
data
=
{}
,
css_class:
'btn-clipboard'
)
content_tag
:button
,
icon
(
'clipboard'
),
class:
'btn btn-clipboard'
,
class:
"btn
#{
css_class
}
"
,
data:
data
,
type: :button
end
...
...
app/views/projects/commits/_commit.html.haml
View file @
79b375e1
...
...
@@ -12,15 +12,15 @@
=
commit_author_avatar
(
commit
)
.commit-row-title
%span
.item-title
=
link_to_gfm
commit
.
title
,
namespace_project_commit_path
(
project
.
namespace
,
project
,
commit
.
id
),
class:
"commit-row-message
commit-link
"
=
link_to_gfm
commit
.
title
,
namespace_project_commit_path
(
project
.
namespace
,
project
,
commit
.
id
),
class:
"commit-row-message"
-
if
commit
.
description?
%a
.text-expander.js-toggle-button
...
.commit-actions
-
if
commit
.
status
=
render_commit_status
(
commit
,
cssclass:
'btn btn-transparent'
)
=
clipboard_button
(
clipboard_text:
commit
.
id
)
=
link_to
commit
.
short_id
,
namespace_project_commit_path
(
project
.
namespace
,
project
,
commit
),
class:
"commit-short-id btn btn-transparent
commit-link
"
=
clipboard_button
(
{
clipboard_text:
commit
.
id
},
css_class:
'btn-transparent'
)
=
link_to
commit
.
short_id
,
namespace_project_commit_path
(
project
.
namespace
,
project
,
commit
),
class:
"commit-short-id btn btn-transparent"
=
link_to_browse_code
(
project
,
commit
)
-
if
commit
.
description?
...
...
@@ -30,4 +30,4 @@
.commit-row-info
=
commit_author_link
(
commit
,
avatar:
true
,
size:
24
)
authored
#{
time_ago_with_tooltip
(
commit
.
committed_date
)
}
#{
time_ago_with_tooltip
(
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