Author: sdumitriu
Date: 2007-12-28 16:03:37 +0100 (Fri, 28 Dec 2007)
New Revision: 6504

Modified:
   xwiki-products/xwiki-enterprise/trunk/wiki/src/main/resources/Photos/WebHome
   
xwiki-products/xwiki-enterprise/trunk/wiki/src/main/resources/XWiki/PhotoAlbumClassSheet
Log:
XE-171: Display scaled images in the photo album application
Fixed.


Modified: 
xwiki-products/xwiki-enterprise/trunk/wiki/src/main/resources/Photos/WebHome
===================================================================
--- 
xwiki-products/xwiki-enterprise/trunk/wiki/src/main/resources/Photos/WebHome    
    2007-12-28 14:06:59 UTC (rev 6503)
+++ 
xwiki-products/xwiki-enterprise/trunk/wiki/src/main/resources/Photos/WebHome    
    2007-12-28 15:03:37 UTC (rev 6504)
@@ -70,7 +70,7 @@
 #set($bentryobj = $bentrydoc.getObject("XWiki.PhotoAlbumClass",0))
 #if($bentrydoc.attachmentList.size()>0)
 #set($attach = $bentrydoc.attachmentList.get(0))
-<img src="$bentrydoc.getAttachmentURL($attach.filename,"download")"  
height="50" alt="$!{bentrydoc.display("title","view",$bentryobj)}" 
/>|[$!{bentrydoc.display("title","view",$bentryobj)}>$item] | 
$!bentrydoc.display("description", "view", $bentryobj) | $!comment
+<img src="$bentrydoc.getAttachmentURL($attach.filename,"download", 
"height=50")"  height="50" 
alt="$!{bentrydoc.display("title","view",$bentryobj)}" 
/>|[$!{bentrydoc.display("title","view",$bentryobj)}>$item] | 
$!bentrydoc.display("description", "view", $bentryobj) | $!comment
 #else
 [No 
photo>$item]|[$!{bentrydoc.display("title","view",$bentryobj)}>$item] | 
$!bentrydoc.display("description","view",$bentryobj) | $!comment
 #end

Modified: 
xwiki-products/xwiki-enterprise/trunk/wiki/src/main/resources/XWiki/PhotoAlbumClassSheet
===================================================================
--- 
xwiki-products/xwiki-enterprise/trunk/wiki/src/main/resources/XWiki/PhotoAlbumClassSheet
    2007-12-28 14:06:59 UTC (rev 6503)
+++ 
xwiki-products/xwiki-enterprise/trunk/wiki/src/main/resources/XWiki/PhotoAlbumClassSheet
    2007-12-28 15:03:37 UTC (rev 6504)
@@ -77,7 +77,7 @@
       #foreach ($attach in $doc.attachmentList)
         #set($current = $current + 1)
         <a href="$doc.getURL("view","diapo=$current")" >
-          <img src="$doc.getAttachmentURL($attach.filename,"download")"  
height="${height}" alt="photo ${current}" />
+          <img src="$doc.getAttachmentURL($attach.filename, "download", 
"height=${height}")"  height="${height}" alt="photo ${current}" />
         </a>
       #end
     #end
@@ -102,7 +102,7 @@
         #set($prev = ($current - 1))
         #set($next = ($current + 1))
         <a href="$doc.getAttachmentURL($attach.filename,"download")" >
-          <img src="$doc.getAttachmentURL($attach.filename,"download")"  
height="${height}" />
+          <img src="$doc.getAttachmentURL($attach.filename, "download", 
"height=${height}")"  height="${height}" />
         </a>
       #end
     #end

_______________________________________________
notifications mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/notifications

Reply via email to