Sha256: 00acbea4003f1d0c4c371c86c9f2356340efb6fe2de0b5f6fb49d1ef182ebaf8

Contents?: true

Size: 1.59 KB

Versions: 17

Compression:

Stored size: 1.59 KB

Contents

<% cache(content) do %>

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

<div class="content_editor essence_file" id="<%= content.dom_id %>" data-content-id="<%= content.id %>">
  <%= label_and_remove_link(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;" + _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: _t(:edit_file_properties),
          size: '400x165'
        },
        class: 'edit_file',
        title: _t(:edit_file_properties) %>
    </div>
    <% if content.ingredient %>
      <%= hidden_field_tag content.form_field_name(:attachment_id),
        content.ingredient.id %>
    <% end %>
  </div>
</div>
<% end %>

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
alchemy_cms-3.2.1 app/views/alchemy/essences/_essence_file_editor.html.erb
alchemy_cms-3.1.3 app/views/alchemy/essences/_essence_file_editor.html.erb
lc_alchemy_cms-3.2.1 app/views/alchemy/essences/_essence_file_editor.html.erb
lc_alchemy_cms-3.2.0 app/views/alchemy/essences/_essence_file_editor.html.erb
alchemy_cms-3.2.0 app/views/alchemy/essences/_essence_file_editor.html.erb
alchemy_cms-3.2.0.rc1 app/views/alchemy/essences/_essence_file_editor.html.erb
alchemy_cms-3.2.0.beta app/views/alchemy/essences/_essence_file_editor.html.erb
alchemy_cms-3.1.1 app/views/alchemy/essences/_essence_file_editor.html.erb
alchemy_cms-3.1.0 app/views/alchemy/essences/_essence_file_editor.html.erb
alchemy_cms-3.1.0.rc3 app/views/alchemy/essences/_essence_file_editor.html.erb
alchemy_cms-3.1.0.rc2 app/views/alchemy/essences/_essence_file_editor.html.erb
alchemy_cms-3.1.0.rc1 app/views/alchemy/essences/_essence_file_editor.html.erb
alchemy_cms-3.1.0.beta6 app/views/alchemy/essences/_essence_file_editor.html.erb
alchemy_cms-3.1.0.beta5 app/views/alchemy/essences/_essence_file_editor.html.erb
alchemy_cms-3.1.0.beta4 app/views/alchemy/essences/_essence_file_editor.html.erb
alchemy_cms-3.1.0.beta3 app/views/alchemy/essences/_essence_file_editor.html.erb
alchemy_cms-3.1.0.beta2 app/views/alchemy/essences/_essence_file_editor.html.erb