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
c8e4bbb1
Commit
c8e4bbb1
authored
7 years ago
by
Alexis Reigel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
extract partial for the signature badge user
parent
e7be70a0
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
21 deletions
+22
-21
app/views/projects/commit/_signature_badge_user.html.haml
app/views/projects/commit/_signature_badge_user.html.haml
+21
-0
app/views/projects/commit/_valid_signature_badge.html.haml
app/views/projects/commit/_valid_signature_badge.html.haml
+1
-21
No files found.
app/views/projects/commit/_signature_badge_user.html.haml
0 → 100644
View file @
c8e4bbb1
-
gpg_key
=
signature
.
gpg_key
-
user
=
gpg_key
&
.
user
-
user_name
=
signature
.
gpg_key_user_name
-
user_email
=
signature
.
gpg_key_user_email
-
if
user
=
link_to
user_path
(
user
),
class:
'gpg-popover-user-link'
do
%div
=
user_avatar_without_link
(
user:
user
,
size:
32
)
%div
%strong
=
user
.
name
%div
@
#{
user
.
username
}
-
else
=
mail_to
user_email
do
%div
=
user_avatar_without_link
(
user_name:
user_name
,
user_email:
user_email
,
size:
32
)
%div
%strong
=
user_name
%div
=
user_email
This diff is collapsed.
Click to expand it.
app/views/projects/commit/_valid_signature_badge.html.haml
View file @
c8e4bbb1
...
...
@@ -5,27 +5,7 @@
This commit was signed with a
<strong>
verified
</strong>
signature.
-
content
=
capture
do
-
gpg_key
=
signature
.
gpg_key
-
user
=
gpg_key
&
.
user
-
user_name
=
signature
.
gpg_key_user_name
-
user_email
=
signature
.
gpg_key_user_email
-
if
user
=
link_to
user_path
(
user
),
class:
'gpg-popover-user-link'
do
%div
=
user_avatar_without_link
(
user:
user
,
size:
32
)
%div
%strong
=
gpg_key
.
user
.
name
%div
@
#{
gpg_key
.
user
.
username
}
-
else
=
mail_to
user_email
do
%div
=
user_avatar_without_link
(
user_name:
user_name
,
user_email:
user_email
,
size:
32
)
%div
%strong
=
user_name
%div
=
user_email
=
render
partial:
'projects/commit/signature_badge_user'
,
locals:
{
signature:
signature
}
-
locals
=
{
signature:
signature
,
title:
title
,
content:
content
,
label:
'Verified'
,
css_classes:
[
'valid'
]
}
...
...
This diff is collapsed.
Click to expand it.
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