Skip to content
Snippets Groups Projects
Unverified Commit f9aead9f authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Hide gpg signature on tags page from tag message

parent 43512817
No related branches found
No related tags found
No related merge requests found
module GitHelper
def strip_gpg_signature(text)
text.gsub(/-----BEGIN PGP SIGNATURE-----(.*)-----END PGP SIGNATURE-----/m, "")
end
end
Loading
Loading
@@ -6,7 +6,7 @@
= tag.name
- if tag.message.present?
 
= tag.message
= strip_gpg_signature(tag.message)
.pull-right
- if can? current_user, :download_code, @project
= render 'projects/repositories/download_archive', ref: tag.name, btn_class: 'btn-grouped btn-group-small'
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment