2019-08-30 22:16:39 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module ExternalLinkHelper
|
2019-09-03 21:26:39 +00:00
|
|
|
def external_link(body, url, options = {})
|
|
|
|
link_to url, { target: '_blank', rel: 'noopener noreferrer' }.merge(options) do
|
2019-08-30 22:16:39 +00:00
|
|
|
"#{body} #{icon('external-link')}".html_safe
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|