Commit 7fc69a7e authored by Alexis Reigel's avatar Alexis Reigel

linkify the whole user badge part, not only avatar

parent ee7468e7
...@@ -314,6 +314,11 @@ ...@@ -314,6 +314,11 @@
} }
} }
.gpg-badge-popover-user-link {
text-decoration: none;
color: $gl-text-color;
}
.gpg-badge-popover-avatar { .gpg-badge-popover-avatar {
float: left; float: left;
margin-bottom: $gl-padding; margin-bottom: $gl-padding;
......
...@@ -228,9 +228,10 @@ module CommitsHelper ...@@ -228,9 +228,10 @@ module CommitsHelper
end end
content = capture do content = capture do
link_to user_path(signature.gpg_key.user), class: 'gpg-badge-popover-user-link' do
concat( concat(
content_tag(:div, class: 'gpg-badge-popover-avatar') do content_tag(:div, class: 'gpg-badge-popover-avatar') do
user_avatar(user: signature.gpg_key.user, size: 32) user_avatar_without_link(user: signature.gpg_key.user, size: 32)
end end
) )
...@@ -246,6 +247,7 @@ module CommitsHelper ...@@ -246,6 +247,7 @@ module CommitsHelper
end end
) )
end end
end
commit_gpg_signature_badge_with(signature, label: 'Verified', title: title, content: content, css_classes: ['valid']) commit_gpg_signature_badge_with(signature, label: 'Verified', title: title, content: content, css_classes: ['valid'])
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment