Module: InProductMarketingHelper

Defined in:
app/helpers/in_product_marketing_helper.rb

Instance Method Summary collapse

Instance Method Details



9
10
11
# File 'app/helpers/in_product_marketing_helper.rb', line 9

def about_link(image, width)
  link_to inline_image_link(image, { width: width, style: "width: #{width}px;", alt: s_('InProductMarketing|go to about.gitlab.com') }), 'https://about.gitlab.com/'
end


4
5
6
7
# File 'app/helpers/in_product_marketing_helper.rb', line 4

def inline_image_link(image, options)
  attachments.inline[image] = File.read(Rails.root.join("app/assets/images", image))
  image_tag attachments[image].url, **options
end