Module: InProductMarketingHelper
- Defined in:
- app/helpers/in_product_marketing_helper.rb
Instance Method Summary collapse
Instance Method Details
#about_link(image, width) ⇒ Object
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 |
#inline_image_link(image, options) ⇒ Object
4 5 6 7 |
# File 'app/helpers/in_product_marketing_helper.rb', line 4 def inline_image_link(image, ) .inline[image] = File.read(Rails.root.join("app/assets/images", image)) image_tag [image].url, ** end |