gitlab-org--gitlab-foss/app/helpers/external_link_helper.rb

9 lines
255 B
Ruby

# frozen_string_literal: true
module ExternalLinkHelper
def external_link(body, url, options = {})
link_to url, { target: '_blank', rel: 'noopener noreferrer' }.merge(options) do
"#{body} #{icon('external-link')}".html_safe
end
end
end