<%- if content.ingredient.nil? -%> <%= link_to_overlay_window("", alchemy.admin_attachments_path( :content_id => content.id, :only => options[:file_assign_show_only], :except => options[:file_assign_do_not_show], :options => options ), { :title => t('assign_file'), :size => '520x400', :resizable => 'true' }, :class => 'assign_file', :title => t('assign_file') ) %> <%- else -%> <%= render_icon(content.ingredient.icon_css_class) %> <%- end -%>
<%= content.ingredient.name rescue ("←" + t('assign_file_from_archive')).html_safe %>
<%- unless content.ingredient.nil? -%> <%= hidden_field_tag content.form_field_name(:attachment_id), content.ingredient.id %>
<%= link_to_overlay_window("", alchemy.admin_attachments_path( :content_id => content.id, :only => options[:file_assign_show_only], :except => options[:file_assign_do_not_show], :options => options ), { :title => t('assign_file'), :size => '520x400', :resizable => 'true' }, :class => 'assign_file', :title => t('assign_file') ) %> <%= link_to_overlay_window("", url_for( :controller => 'essence_files', :action => 'edit', :id => content ), { :title => t('edit_file_properties'), :size => '400x150' }, :class => 'edit_file', :title => t('edit_file_properties') ) %>
<%- end -%>