# This patch file was generated by NetBeans IDE
# This patch can be applied using context Tools: Apply Diff Patch action on respective folder.
# It uses platform neutral UTF-8 encoding.
# Above lines and this line are ignored by the patching process.
Index: contributions/modules/image/CHANGELOG.txt
--- contributions/modules/image/CHANGELOG.txt Base (1.42)
+++ contributions/modules/image/CHANGELOG.txt Locally Modified (Based On 1.42)
@@ -6,6 +6,7 @@

 Image 6.x-1.x, xxxx-xx-xx
 -------------------------
+#228886 by joachim: mark unpublished attached nodes with CSS.
 #256195 by dman, sun: Added invocation of hook_file_metadata() to Image Import.
 #362818 by sun: Fixed validation/submission of Image Import settings form.
 #298702 by sp3boy, smk-ka, sun: Fixed image uploads are not properly validated.
Index: contributions/modules/image/contrib/image_attach/image_attach.module
--- contributions/modules/image/contrib/image_attach/image_attach.module Base (1.46)
+++ contributions/modules/image/contrib/image_attach/image_attach.module Locally Modified (Based On 1.46)
@@ -388,9 +388,10 @@
       // If the image is restricted, don't show it as an attachment.
       return NULL;
     }
+    $class = 'image-attach-teaser' . ($image->status ? '' : ' image-unpublished');
     $info = image_get_info(file_create_path($image->images[$img_size]));
 
-    $output = '<div style="width: '. $info['width'] .'px" class="image-attach-teaser">';
+    $output = '<div style="width: ' . $info['width'] . 'px" class="' . $class . '">';
     $output .= l(image_display($image, $img_size), "node/$node->nid", array('html' => TRUE));
     $output .= '</div>'."\n";
 
@@ -412,10 +413,10 @@
       // If the image is restricted, don't show it as an attachment.
       return NULL;
     }
-    $published = $image->status ? '' : ' image-unpublished';
+    $class = 'image-attach-body' . ($image->status ? '' : ' image-unpublished');
     $info = image_get_info(file_create_path($image->images[$img_size]));
 
-    $output = '<div style="width: '. $info['width'] .'px" class="image-attach-body'. $published .'">';
+    $output = '<div style="width: ' . $info['width'] . 'px" class="' . $class . '">';
     $output .= l(image_display($image, $img_size), "node/$node->iid", array('html' => TRUE));
     $output .= '</div>'."\n";
 
