Sha256: ee3604f67916785c373ce8a7d6bd266f608076cdc4f8ac2abba3883e0102730a

Contents?: true

Size: 1.53 KB

Versions: 12

Compression:

Stored size: 1.53 KB

Contents

<% dialog_link = link_to_dialog('',
  alchemy.admin_attachments_path(
    content_id: content.id,
    only: content.settings_value(:only, local_assigns.fetch(:options, {})),
    except: content.settings_value(:except, local_assigns.fetch(:options, {})),
    options: local_assigns.fetch(:options, {}).to_json
  ),
  {
    title: Alchemy.t(:assign_file),
    size: '780x585',
    padding: false
  },
  {
    class: 'assign_file',
    title: Alchemy.t(:assign_file)
  }
) %>

<div class="content_editor essence_file" id="<%= content.dom_id %>" data-content-id="<%= content.id %>">
  <%= content_label(content) %>
  <div class="file" id="file_<%= content.id %>">
    <div class="file_icon">
    <% if content.ingredient %>
      <%= render_icon(content.ingredient.icon_css_class) %>
    <% else %>
      <%= dialog_link %>
    <% end %>
    </div>
    <div class="file_name">
      <%= content.ingredient.try(:name) ||
        ("&#x2190;" + Alchemy.t(:assign_file_from_archive)).html_safe %>
    </div>
    <div class="essence_file_tools">
      <%= dialog_link %>
      <%= link_to_dialog '',
        alchemy.edit_admin_essence_file_path(
          id: content.essence.id,
          options: local_assigns.fetch(:options, {}).to_json
        ),
        {
          title: Alchemy.t(:edit_file_properties),
          size: '400x215'
        },
        class: 'edit_file',
        title: Alchemy.t(:edit_file_properties) %>
    </div>
    <%= hidden_field_tag content.form_field_name(:attachment_id),
      content.ingredient && content.ingredient.id %>
  </div>
</div>

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
alchemy_cms-3.6.7 app/views/alchemy/essences/_essence_file_editor.html.erb
alchemy_cms-3.6.6 app/views/alchemy/essences/_essence_file_editor.html.erb
alchemy_cms-3.6.5 app/views/alchemy/essences/_essence_file_editor.html.erb
alchemy_cms-3.6.4 app/views/alchemy/essences/_essence_file_editor.html.erb
alchemy_cms-3.6.3 app/views/alchemy/essences/_essence_file_editor.html.erb
alchemy_cms-3.6.2 app/views/alchemy/essences/_essence_file_editor.html.erb
alchemy_cms-3.6.1 app/views/alchemy/essences/_essence_file_editor.html.erb
alchemy_cms-4.0.0.beta app/views/alchemy/essences/_essence_file_editor.html.erb
alchemy_cms-3.6.0 app/views/alchemy/essences/_essence_file_editor.html.erb
alchemy_cms-3.5.0 app/views/alchemy/essences/_essence_file_editor.html.erb
alchemy_cms-3.5.0.rc2 app/views/alchemy/essences/_essence_file_editor.html.erb
alchemy_cms-3.5.0.rc1 app/views/alchemy/essences/_essence_file_editor.html.erb