Sha256: e535226dacc3d8c1544b2d4d478173b2f18596cfcbf014851d8ee2167c889394
Contents?: true
Size: 675 Bytes
Versions: 12
Compression:
Stored size: 675 Bytes
Contents
<%- options = local_assigns.fetch(:options, {}) -%> <%- html_options = local_assigns.fetch(:html_options, {}) -%> <%- if text_view.link.blank? || text_view.settings_value(:disable_link, options) -%> <%- if text_view.dom_id.present? -%> <%= content_tag :a, text_view.value, id: text_view.dom_id %> <% else %> <%= text_view.value -%> <%- end -%> <%- else -%> <%= link_to( text_view.value, url_for(text_view.link), { id: text_view.dom_id.presence, title: text_view.link_title, target: (text_view.link_target == "blank" ? "_blank" : nil), 'data-link-target' => text_view.link_target }.merge(html_options) ) -%> <%- end -%>
Version data entries
12 entries across 12 versions & 1 rubygems