Sha256: 50d68f2ec7ca06eb427a70b235b6831974e704658773de2874f9a50b824c9559

Contents?: true

Size: 546 Bytes

Versions: 3

Compression:

Stored size: 546 Bytes

Contents

<%- cache(content) do -%>
<%- if attachment = content.ingredient -%>
<%- html_options = local_assigns.fetch(:html_options, {}) -%>
<%= link_to(
  content.essence.link_text.presence ||
    content.settings_value(:link_text, local_assigns.fetch(:options, {})) ||
    attachment.name,
  alchemy.download_attachment_path(
    attachment,
    name: attachment.urlname,
    format: attachment.suffix
  ),
  {
    class: content.essence.css_class.presence,
    title: content.essence.title.presence
  }.merge(html_options)
) -%>
<%- end -%>
<%- end -%>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
alchemy_cms-3.4.2 app/views/alchemy/essences/_essence_file_view.html.erb
alchemy_cms-3.4.1 app/views/alchemy/essences/_essence_file_view.html.erb
alchemy_cms-3.3.3 app/views/alchemy/essences/_essence_file_view.html.erb