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