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

Version Path
alchemy_cms-6.1.10 app/views/alchemy/ingredients/_text_view.html.erb
alchemy_cms-6.1.9 app/views/alchemy/ingredients/_text_view.html.erb
alchemy_cms-6.1.8 app/views/alchemy/ingredients/_text_view.html.erb
alchemy_cms-6.1.7 app/views/alchemy/ingredients/_text_view.html.erb
alchemy_cms-6.1.6 app/views/alchemy/ingredients/_text_view.html.erb
alchemy_cms-6.1.5 app/views/alchemy/ingredients/_text_view.html.erb
alchemy_cms-6.1.4 app/views/alchemy/ingredients/_text_view.html.erb
alchemy_cms-7.0.0.pre.a app/views/alchemy/ingredients/_text_view.html.erb
alchemy_cms-6.1.3 app/views/alchemy/ingredients/_text_view.html.erb
alchemy_cms-6.1.2 app/views/alchemy/ingredients/_text_view.html.erb
alchemy_cms-6.1.1 app/views/alchemy/ingredients/_text_view.html.erb
alchemy_cms-6.1.0 app/views/alchemy/ingredients/_text_view.html.erb