Sha256: bfef1c654b0a7fa64e143ee98a5410e379681ecd756dcb25790fd04fe692eae2

Contents?: true

Size: 477 Bytes

Versions: 40

Compression:

Stored size: 477 Bytes

Contents

<%- if attachment = file_view.attachment -%>
<%- html_options = local_assigns.fetch(:html_options, {}) -%>
<%= link_to(
  file_view.link_text.presence ||
    file_view.settings_value(:link_text, local_assigns.fetch(:options, {})) ||
    attachment.name,
  attachment.url(
    download: true,
    name: attachment.slug,
    format: attachment.suffix
  ),
  {
    class: file_view.css_class.presence,
    title: file_view.title.presence
  }.merge(html_options)
) -%>
<%- end -%>

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
alchemy_cms-6.1.10 app/views/alchemy/ingredients/_file_view.html.erb
alchemy_cms-6.1.9 app/views/alchemy/ingredients/_file_view.html.erb
alchemy_cms-6.1.8 app/views/alchemy/ingredients/_file_view.html.erb
alchemy_cms-6.1.7 app/views/alchemy/ingredients/_file_view.html.erb
alchemy_cms-6.1.6 app/views/alchemy/ingredients/_file_view.html.erb
alchemy_cms-6.1.5 app/views/alchemy/ingredients/_file_view.html.erb
alchemy_cms-6.0.14 app/views/alchemy/ingredients/_file_view.html.erb
alchemy_cms-6.1.4 app/views/alchemy/ingredients/_file_view.html.erb
alchemy_cms-7.0.0.pre.a app/views/alchemy/ingredients/_file_view.html.erb
alchemy_cms-6.0.13 app/views/alchemy/ingredients/_file_view.html.erb
alchemy_cms-6.1.3 app/views/alchemy/ingredients/_file_view.html.erb
alchemy_cms-6.1.2 app/views/alchemy/ingredients/_file_view.html.erb
alchemy_cms-6.1.1 app/views/alchemy/ingredients/_file_view.html.erb
alchemy_cms-6.1.0 app/views/alchemy/ingredients/_file_view.html.erb
alchemy_cms-6.0.12 app/views/alchemy/ingredients/_file_view.html.erb
alchemy_cms-6.0.11 app/views/alchemy/ingredients/_file_view.html.erb
alchemy_cms-6.0.10 app/views/alchemy/ingredients/_file_view.html.erb
alchemy_cms-6.0.9 app/views/alchemy/ingredients/_file_view.html.erb
alchemy_cms-6.0.8 app/views/alchemy/ingredients/_file_view.html.erb
alchemy_cms-6.0.7 app/views/alchemy/ingredients/_file_view.html.erb