2019-12-04 20:38:33 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module ExternalLinkHelper
|
|
|
|
def external_link(body, url, options = {})
|
|
|
|
link_to url, { target: '_blank', rel: 'noopener noreferrer' }.merge(options) do
|
2021-01-03 14:25:43 +05:30
|
|
|
"#{body} #{sprite_icon('external-link')}".html_safe
|
2019-12-04 20:38:33 +05:30
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|