anchor.diff:                :name => t('.name'),
                 :id => "current_resource_link_#{field}"
     %>
  -  <div id="current_resource_container_<%= field %>" style="margin-top: 10px;<%= 'display: none' unless resource.present? %>">
  +  <div id="current_resource_container_<%= field %>" style="margin-top: 10px;<%= 'display: none' unless resource %>">
       <%= link_to "#{refinery_icon_tag('page_white_put.png')} ".html_safe +
                   content_tag(
                     :span,
  -                  resource.present? ? "#{resource.title} (#{resource.file_name})" : '',
  +                  (%Q{#{resource.title} (#{resource.file_name})} if resource).to_s,
                     :id => "current_resource_text_#{field}"
                   ),
  -                "#{resource.url if resource.present?}",
  +                "#{resource.url if resource}",
                   :id => "current_resource_#{field}",
                   :target => '_blank' %>
     </div>
     <br/>
     <%= link_to t('.remove_current'), '',
                 :id => "remove_resource_#{field}",
  -              :style => "#{'display:none;' unless resource.present?}" %>
  +              :style => "#{'display:none;' unless resource}" %>
   </div>
   
   <% content_for :javascripts do %>
  
positive.code: <%
    conditions ||= nil
    insert_text = %Q{<span id="no_resource_selected_#{field}" class="nothing_selected" #{'style="display: none;"'.html_safe if resource.present?}>
                     #{t('.no_resource_selected')}
                   </span>}.html_safe
    insert_link = refinery.insert_admin_resources_path({
  
negative.code:                   :update_text => "current_resource_text_#{field}",
                    :callback => "resource_changed_#{field}",
                    :field => [f.object_name.gsub(/\]\[|[^-a-zA-Z0-9:.]/, '_').sub(/_$/, ''), field].join('_'),
                    :current_link => "#{resource.url if resource}",
                    :height => 480,
                    :conditions => conditions
                  })
  