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
Jérome Perrin
gitlab-ce
Commits
49b9968d
Commit
49b9968d
authored
Aug 23, 2017
by
Clement Ho
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '36709-gpg-status' into 'master'
Fix alignment of gpg status Closes #36709 See merge request !13772
parents
99bb3dde
0dd71ed4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
6 deletions
+7
-6
app/assets/stylesheets/pages/commits.scss
app/assets/stylesheets/pages/commits.scss
+3
-2
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
+3
-3
No files found.
app/assets/stylesheets/pages/commits.scss
View file @
49b9968d
...
@@ -286,6 +286,9 @@
...
@@ -286,6 +286,9 @@
.gpg-status-box
{
.gpg-status-box
{
padding
:
2px
10px
;
margin-right
:
$gl-padding
;
&
:empty
{
&
:empty
{
display
:
none
;
display
:
none
;
}
}
...
@@ -314,7 +317,6 @@
...
@@ -314,7 +317,6 @@
&
.valid
{
&
.valid
{
svg
{
svg
{
border
:
1px
solid
$brand-success
;
border
:
1px
solid
$brand-success
;
fill
:
$brand-success
;
fill
:
$brand-success
;
}
}
}
}
...
@@ -322,7 +324,6 @@
...
@@ -322,7 +324,6 @@
&
.invalid
{
&
.invalid
{
svg
{
svg
{
border
:
1px
solid
$common-gray-light
;
border
:
1px
solid
$common-gray-light
;
fill
:
$common-gray-light
;
fill
:
$common-gray-light
;
}
}
}
}
...
...
app/helpers/commits_helper.rb
View file @
49b9968d
...
@@ -114,7 +114,7 @@ module CommitsHelper
...
@@ -114,7 +114,7 @@ module CommitsHelper
end
end
def
commit_signature_badge_classes
(
additional_classes
)
def
commit_signature_badge_classes
(
additional_classes
)
%w(btn
status-box
gpg-status-box)
+
Array
(
additional_classes
)
%w(btn gpg-status-box)
+
Array
(
additional_classes
)
end
end
protected
protected
...
...
app/views/projects/commits/_commit.html.haml
View file @
49b9968d
...
@@ -37,14 +37,14 @@
...
@@ -37,14 +37,14 @@
.commit-actions.hidden-xs
.commit-actions.hidden-xs
-
if
commit
.
status
(
ref
)
=
render_commit_status
(
commit
,
ref:
ref
)
-
if
request
.
xhr?
-
if
request
.
xhr?
=
render
partial:
'projects/commit/signature'
,
object:
commit
.
signature
=
render
partial:
'projects/commit/signature'
,
object:
commit
.
signature
-
else
-
else
=
render
partial:
'projects/commit/ajax_signature'
,
locals:
{
commit:
commit
}
=
render
partial:
'projects/commit/ajax_signature'
,
locals:
{
commit:
commit
}
-
if
commit
.
status
(
ref
)
=
render_commit_status
(
commit
,
ref:
ref
)
=
link_to
commit
.
short_id
,
project_commit_path
(
project
,
commit
),
class:
"commit-sha btn btn-transparent"
=
link_to
commit
.
short_id
,
project_commit_path
(
project
,
commit
),
class:
"commit-sha btn btn-transparent"
=
clipboard_button
(
text:
commit
.
id
,
title:
_
(
"Copy commit SHA to clipboard"
))
=
clipboard_button
(
text:
commit
.
id
,
title:
_
(
"Copy commit SHA to clipboard"
))
=
link_to_browse_code
(
project
,
commit
)
=
link_to_browse_code
(
project
,
commit
)
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