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

Modified Files:
        imageinfo.jsp 
Log Message:
CMSC-1070 - Improve Image detail popup window: give link to full image


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


Index: imageinfo.jsp
===================================================================
RCS file: 
/var/cvs/contributions/CMSContainer/cmsc/contentrepository/src/webapp/editors/resources/imageinfo.jsp,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- imageinfo.jsp       9 Jul 2008 12:24:37 -0000       1.5
+++ imageinfo.jsp       19 Sep 2008 21:50:26 -0000      1.6
@@ -1,7 +1,7 @@
-<[EMAIL PROTECTED] language="java" contentType="text/html;charset=UTF-8"%>
-<[EMAIL PROTECTED] file="globals.jsp" %>
-<mm:content type="text/html" encoding="UTF-8" expires="0">
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
+<[EMAIL PROTECTED] language="java" contentType="text/html;charset=UTF-8"
+%><[EMAIL PROTECTED] file="globals.jsp" %>
+<mm:content type="text/html" encoding="UTF-8" expires="0">
 <html:html xhtml="true">
 <cmscedit:head title="imageinfo.title" />
 <body>
@@ -22,10 +22,14 @@
                                        <div style="float:left">
                      <mm:field name="width" jspvar="width" write="false"/>
                      <c:choose>
-                        <c:when test="${width gt 430}"><mm:image 
template="s(430)" jspvar="imageSource" write="false"/></c:when>
-                        <c:otherwise><mm:image jspvar="imageSource" 
write="false"/></c:otherwise>
+                        <c:when test="${width gt 430}"><mm:image 
template="s(430)" jspvar="imageSource" write="false"/>
+                                                                       <a 
href="<mm:image jspvar="imageSourceOriginal" />" title='<mm:field 
name="description" /> - (<fmt:message key="imageinfo.fullsize"/>)'><img 
src="${imageSource}" alt="<mm:field name="description" /> - (<fmt:message 
key="imageinfo.fullsize"/>)" /></a>
+                                                               </c:when>
+                        <c:otherwise><mm:image jspvar="imageSource" 
write="false"/>
+                                                                       <img 
src="${imageSource}" alt="<fmt:message key="imageinfo.originalsize"/> - 
<mm:field name="description" />" />
+                                                               </c:otherwise>
                      </c:choose>
-                     <img src="${imageSource}" alt="<mm:field 
name="description" />" /><br/>
+                     <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