Sha256: 2d46b69adea9d559cad70ac24d4e91b5ceb2ae305fea545f7df8bca12fe8f0d8

Contents?: true

Size: 354 Bytes

Versions: 9

Compression:

Stored size: 354 Bytes

Contents

<% cache(content) do %>
<% if attachment = content.ingredient %>
<%= link_to(
  h(attachment.name),
  alchemy.download_attachment_path(attachment),
  class: "file_link #{content.essence.css_class.blank? ? "" : content.essence.css_class}",
  title: "#{content.essence.title.blank? ? attachment.file_name : content.essence.title}"
) %>
<% end %>
<% end %>

Version data entries

9 entries across 9 versions & 1 rubygems

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