Sha256: 5ca79d1309f7d064b1eb77e3b247772316e96de01317bd547ce86dbf72fac7b9
Contents?: true
Size: 1.59 KB
Versions: 10
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(: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) || ("←" + 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> <% if content.ingredient %> <%= hidden_field_tag content.form_field_name(:attachment_id), content.ingredient.id %> <% end %> </div> </div> <% end %>
Version data entries
10 entries across 10 versions & 1 rubygems