anchor.diff:    <% unless images.empty? %>
       <div class='images'>
         <% images.each do |attachment| %>
  +        <% caption = "#{attachment.filename}#{ (' - ' + attachment.description) unless attachment.description.blank? }" %>
           <%= link_to image_tag(url_for({:controller => 'attachments', :action => 'download', :id => attachment, :filename => attachment.filename }), :width => Setting.thumbnails_size),
             { :controller => 'attachments', :action => 'download', :id => attachment, :filename => attachment.filename },
  -          :class => 'lightbox', :rel => 'thumbnails', :title => "#{attachment.filename}#{ ('-' + attachment.description) unless attachment.description.blank? }",
  +          :class => 'lightbox', :rel => 'thumbnails', :title => l(:label_preview) + ': ' + caption,
             :data  => {
               :type => attachment.is_pdf? ? 'iframe' : 'image',
               :fancybox => 'thumbnails',
  -            :caption => "#{attachment.filename}#{ (' - ' + attachment.description) unless attachment.description.blank? }"
  +            :caption => caption
             }
           %>
         <% end -%>
  
positive.code:   <% if images.any? %>
    <div class="thumbnails images">
      <% images.each do |attachment| %>
        <div>
          <%=
            link_to image_tag(url_for(:controller => 'attachments', :action => 'thumbnail', :id => attachment)),
            { :controller => 'attachments', :action => 'download', :id => attachment, :filename => attachment.filename },
            :class => ('lightbox' + (attachment.is_pdf? ? ' pdf' : '')) , :rel => 'thumbnails', :title => "#{attachment.filename}#{ ('-' + attachment.description) unless attachment.description.blank? }",
            :data  => {
              :type => attachment.is_pdf? ? 'iframe' : 'image',
              :fancybox => 'thumbnails',
              :caption => "#{attachment.filename}#{ (' - ' + attachment.description) unless attachment.description.blank? }"
            }
          %>
        </div>
  
negative.code:       <%= link_to l(:button_view),
                    { :controller => 'attachments', :action => 'download', :id => attachment, :filename => attachment.filename },
                    :class => 'icon-only icon-magnifier lightbox_preview ' + attachment.filename.split('.').last.downcase,
                    :rel => 'attachments', :title => l(:label_preview),
                    :data  => {
                      :type => 'image',
                      :fancybox => 'attachments',
                      :caption => caption
                    } %>
  
      <% elsif attachment.is_pdf? %>
  