Sha256: bb81ffaf3aa4da86c5182163dc10aef0c3cffd4b1e967ead815671f0a0707cb5

Contents?: true

Size: 1.92 KB

Versions: 9

Compression:

Stored size: 1.92 KB

Contents

<div class="content_editor essence_file" id="<%= content.dom_id %>">
  <label style="display: inline">
    <%= render_content_name(content) %>
    <%= delete_content_link(content) %>
  </label>
  <div class="file" id="file_<%= content.id %>">
    <div class="file_icon">
    <% if content.ingredient.nil? %>
      <%= link_to_dialog '',
        alchemy.admin_attachments_path(
          content_id: content.id,
          only: options[:file_assign_show_only],
          except: options[:file_assign_do_not_show],
          options: options.to_json
        ),
        {
          title: _t(:assign_file),
          size: '780x585',
          padding: false
        },
        class: 'assign_file',
        title: _t(:assign_file)
      %>
    <% else %>
      <%= render_icon(content.ingredient.icon_css_class) %>
    <% end %>
    </div>
    <div class="file_name">
      <%= content.ingredient.name rescue ("&#x2190;" + _t(:assign_file_from_archive)).html_safe %>
    </div>
    <% unless content.ingredient.nil? %>
    <%= hidden_field_tag content.form_field_name(:attachment_id), content.ingredient.id %>
    <div class="essence_file_tools">
      <%= link_to_dialog '',
        alchemy.admin_attachments_path(
          content_id: content.id,
          only: options[:file_assign_show_only],
          except: options[:file_assign_do_not_show],
          options: options.to_json
        ),
        {
          title: _t(:assign_file),
          size: '780x585',
          padding: false
        },
        class: 'assign_file',
        title: _t(:assign_file)
      %>
      <%= link_to_dialog '',
        url_for(
          controller: 'essence_files',
          action: 'edit',
          options: options.to_json,
          id: content
        ),
        {
          title: _t(:edit_file_properties),
          size: '400x165'
        },
        class: 'edit_file',
        title: _t(:edit_file_properties)
      %>
    </div>
    <% end %>
  </div>
</div>

Version data entries

9 entries across 9 versions & 1 rubygems

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