Sha256: f68e870dd368bd4f922248f9b4799ea1a49b191ea601fdf790d1a31dc80bbe96

Contents?: true

Size: 562 Bytes

Versions: 10

Compression:

Stored size: 562 Bytes

Contents

<%- cache(content) do -%>
<%- options = local_assigns.fetch(:options, {}) -%>
<%- html_options = local_assigns.fetch(:html_options, {}) -%>
<%- if content.essence.link.blank? ||
    content.settings_value(:disable_link, options) -%>
<%= content.ingredient -%>
<%- else -%>
<%= link_to(
  content.ingredient,
  url_for(content.essence.link),
  {
    title: content.essence.link_title,
    target: (content.essence.link_target == "blank" ? "_blank" : nil),
    'data-link-target' => content.essence.link_target
  }.merge(html_options)
) -%>
<%- end -%>
<%- end -%>

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
alchemy_cms-3.4.2 app/views/alchemy/essences/_essence_text_view.html.erb
alchemy_cms-3.4.1 app/views/alchemy/essences/_essence_text_view.html.erb
alchemy_cms-3.3.3 app/views/alchemy/essences/_essence_text_view.html.erb
alchemy_cms-3.3.2 app/views/alchemy/essences/_essence_text_view.html.erb
alchemy_cms-3.4.0 app/views/alchemy/essences/_essence_text_view.html.erb
alchemy_cms-3.4.0.rc1 app/views/alchemy/essences/_essence_text_view.html.erb
alchemy_cms-3.3.1 app/views/alchemy/essences/_essence_text_view.html.erb
alchemy_cms-3.3.0 app/views/alchemy/essences/_essence_text_view.html.erb
alchemy_cms-3.3.0.rc2 app/views/alchemy/essences/_essence_text_view.html.erb
alchemy_cms-3.3.0.rc1 app/views/alchemy/essences/_essence_text_view.html.erb