Sha256: f5994d8b3e246f44c976dbd5edbe0fe7d332eefa7c80bbdbe863154df0349814

Contents?: true

Size: 452 Bytes

Versions: 7

Compression:

Stored size: 452 Bytes

Contents

<%- cache(content) do -%>
<%- if attachment = content.ingredient -%>
<%= 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
) -%>
<%- end -%>
<%- end -%>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
alchemy_cms-3.3.2 app/views/alchemy/essences/_essence_file_view.html.erb
alchemy_cms-3.4.0 app/views/alchemy/essences/_essence_file_view.html.erb
alchemy_cms-3.4.0.rc1 app/views/alchemy/essences/_essence_file_view.html.erb
alchemy_cms-3.3.1 app/views/alchemy/essences/_essence_file_view.html.erb
alchemy_cms-3.3.0 app/views/alchemy/essences/_essence_file_view.html.erb
alchemy_cms-3.3.0.rc2 app/views/alchemy/essences/_essence_file_view.html.erb
alchemy_cms-3.3.0.rc1 app/views/alchemy/essences/_essence_file_view.html.erb