Update of 
/var/cvs/contributions/CMSContainer/cmsc/contentrepository/src/webapp/editors/resources
In directory 
james.mmbase.org:/tmp/cvs-serv15166/cmsc/contentrepository/src/webapp/editors/resources

Modified Files:
        imageinfo.jsp 
Log Message:
CMSC-1004 - Minor improvement to not scale images who are smaller in the info 
window


See also: 
http://cvs.mmbase.org/viewcvs/contributions/CMSContainer/cmsc/contentrepository/src/webapp/editors/resources
See also: http://www.mmbase.org/jira/browse/CMSC-1004


Index: imageinfo.jsp
===================================================================
RCS file: 
/var/cvs/contributions/CMSContainer/cmsc/contentrepository/src/webapp/editors/resources/imageinfo.jsp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- imageinfo.jsp       21 May 2007 18:06:16 -0000      1.3
+++ imageinfo.jsp       9 Jul 2008 12:16:24 -0000       1.4
@@ -20,7 +20,12 @@
                        <mm:cloud jspvar="cloud" rank="basic user" 
loginpage="../login.jsp">
                                <mm:node number="${param.objectnumber}">
                                        <div style="float:left">
-                                       <img src="<mm:image 
template="s(430x430)"/>" alt="<mm:field name="description" />" /><br/>
+                     <mm:field name="width" jspvar="width" write="false"/>
+                     <img src="
+                     <c:choose>
+                        <c:when test="${width gt 430}"><mm:image 
template="s(430)"/></c:when>
+                        <c:otherwise><mm:image/></c:otherwise>
+                     </c:choose>" alt="<mm:field name="description" />" /><br/>
                                </div>
                                <div style="float:left; padding:5px;">
                                    <h1><mm:field name="filename"/></h1>
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to