Sha256: 0bca4c50e82f05a8acd0bf979c1efff1310332b9e5eaac4fc3462bbd5632dda3

Contents?: true

Size: 526 Bytes

Versions: 9

Compression:

Stored size: 526 Bytes

Contents

<% cache(content) do %>
<% options = local_assigns.fetch(:options, {}) %>
<% html_options = local_assigns.fetch(:html_options, {}) %>
<%- if content.essence.link.blank? || options[:disable_link] -%>
<%= 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

9 entries across 9 versions & 1 rubygems

Version Path
alchemy_cms-3.0.4 app/views/alchemy/essences/_essence_text_view.html.erb
alchemy_cms-3.0.3 app/views/alchemy/essences/_essence_text_view.html.erb
alchemy_cms-3.0.2 app/views/alchemy/essences/_essence_text_view.html.erb
alchemy_cms-3.0.1 app/views/alchemy/essences/_essence_text_view.html.erb
alchemy_cms-3.0.0 app/views/alchemy/essences/_essence_text_view.html.erb
alchemy_cms-3.0.0.rc8 app/views/alchemy/essences/_essence_text_view.html.erb
alchemy_cms-3.0.0.rc7 app/views/alchemy/essences/_essence_text_view.html.erb
alchemy_cms-3.0.0.rc6 app/views/alchemy/essences/_essence_text_view.html.erb
alchemy_cms-3.0.0.rc5 app/views/alchemy/essences/_essence_text_view.html.erb