Sha256: 1ae241bff3deeffb2e3f7e98abd2e9fcda23534e958830e5c7bac036ca89e447

Contents?: true

Size: 321 Bytes

Versions: 20

Compression:

Stored size: 321 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module ExternalDomainHelper
    def highlight_domain
      tag.div do
        content_tag(:span, "#{@url_parts[:protocol]}//") +
          content_tag(:span, @url_parts[:domain], class: "alert") +
          content_tag(:span, @url_parts[:path])
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
decidim-core-0.26.5 app/helpers/decidim/external_domain_helper.rb
decidim-core-0.27.2 app/helpers/decidim/external_domain_helper.rb
decidim-core-0.27.1 app/helpers/decidim/external_domain_helper.rb
decidim-core-0.26.4 app/helpers/decidim/external_domain_helper.rb
decidim-core-0.27.0 app/helpers/decidim/external_domain_helper.rb
decidim-core-0.26.3 app/helpers/decidim/external_domain_helper.rb
decidim-core-0.27.0.rc2 app/helpers/decidim/external_domain_helper.rb
decidim-core-0.27.0.rc1 app/helpers/decidim/external_domain_helper.rb
decidim-core-0.26.2 app/helpers/decidim/external_domain_helper.rb
decidim-core-0.26.1 app/helpers/decidim/external_domain_helper.rb
decidim-core-0.26.0 app/helpers/decidim/external_domain_helper.rb
decidim-core-0.26.0.rc2 app/helpers/decidim/external_domain_helper.rb
decidim-core-0.26.0.rc1 app/helpers/decidim/external_domain_helper.rb
decidim-core-0.25.2 app/helpers/decidim/external_domain_helper.rb
decidim-core-0.25.1 app/helpers/decidim/external_domain_helper.rb
decidim-core-0.25.0 app/helpers/decidim/external_domain_helper.rb
decidim-core-0.25.0.rc4 app/helpers/decidim/external_domain_helper.rb
decidim-core-0.25.0.rc3 app/helpers/decidim/external_domain_helper.rb
decidim-core-0.25.0.rc2 app/helpers/decidim/external_domain_helper.rb
decidim-core-0.25.0.rc1 app/helpers/decidim/external_domain_helper.rb