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