Sha256: 2f7cdfb58bcb2caa358e9f49e3cca9d66d627b13d54c46e6d901d60ab5c56704
Contents?: true
Size: 455 Bytes
Versions: 76
Compression:
Stored size: 455 Bytes
Contents
# frozen_string_literal: true module Decidim module WidgetUrlsHelper def embed_modal_for(url) js_embed_code = String.new(content_tag(:script, "", src: url)) embed_code = String.new(content_tag(:noscript, content_tag(:iframe, "", src: url.gsub(".js", ".html"), frameborder: 0, scrolling: "vertical"))) render partial: "decidim/shared/embed_modal", locals: { js_embed_code: js_embed_code, embed_code: embed_code } end end end
Version data entries
76 entries across 76 versions & 2 rubygems