Author: andre Date: 2009-12-03 21:47:36 +0100 (Thu, 03 Dec 2009) New Revision: 40116
Added: openimages/trunk/src/main/webapp/WEB-INF/tags/oip/mediainfo.tagx Log: media info table Added: openimages/trunk/src/main/webapp/WEB-INF/tags/oip/mediainfo.tagx =================================================================== --- openimages/trunk/src/main/webapp/WEB-INF/tags/oip/mediainfo.tagx (rev 0) +++ openimages/trunk/src/main/webapp/WEB-INF/tags/oip/mediainfo.tagx 2009-12-03 20:47:36 UTC (rev 40116) @@ -0,0 +1,81 @@ +<jsp:root + version="2.0" + xmlns:jsp="http://java.sun.com/JSP/Page" + xmlns:c="http://java.sun.com/jsp/jstl/core" + xmlns:fmt="http://java.sun.com/jsp/jstl/fmt" + xmlns:oip="urn:jsptagdir:/WEB-INF/tags/oip" + xmlns:mm="http://www.mmbase.org/mmbase-taglib-2.0"> + + <table border="0" class="media-info"> + <tr> + <th><fmt:message key="media.type" />:</th> + <td> + <oip:type /> + <mm:nodeinfo type="type" id="nodetype" write="false" /> + </td> + </tr> + <c:if test="${nodetype ne 'imagefragments' and nodetype ne 'images'}"> + <tr> + <th><fmt:message key="media.length" />:</th> + <td> + <mm:field name="length"><mm:time inputformat="S" format="mm:ss" /></mm:field> + </td> + </tr> + </c:if> + <tr> + <th><fmt:message key="media.date" />:</th> + <td> + <mm:field name="date"><mm:time format="d MMMM yyyy" /></mm:field> + </td> + </tr> + <tr> + <th><fmt:message key="media.user" />:</th> + <td> + <mm:field name="owner" id="owner" write="false" /> + <mm:hasnode number="$owner"> + <mm:node number="$owner"> + <oip:user /> + </mm:node> + </mm:hasnode> + <mm:hasnode number="$owner" inverse="true"> + unknown + <mm:remove referid="owner" /> + </mm:hasnode> + </td> + </tr> + <mm:field name="source"> + <mm:isnotempty> + <tr> + <th><fmt:message key="media.source" />:</th> + <td>${_}</td> + </tr> + </mm:isnotempty> + </mm:field> + <!-- + <tr> + <th><fmt:message key="media.keywords" />:</th> + <td><mm:field name="keywords" /><jsp:text> </jsp:text></td> + </tr> + --> + <tr> + <th><fmt:message key="media.tags" />:</th> + <td> + <mm:listrelationscontainer type="tags" role="related" searchdir="destination"> + <mm:maxnumber value="99" /> + <mm:listrelations id="tagrel"> + <mm:maydelete> + <mm:link referids="tag...@delete"> + <a href="${_}" class="tag delete"><mm:relatednode><mm:field name="name" /></mm:relatednode></a> + </mm:link> + </mm:maydelete> + <mm:maydelete inverse="true"> + <mm:relatednode><mm:field name="name" /></mm:relatednode><mm:last inverse="true">, </mm:last> + </mm:maydelete> + <jsp:text> </jsp:text> + </mm:listrelations> + </mm:listrelationscontainer> + </td> + </tr> + </table> + +</jsp:root> _______________________________________________ Cvs mailing list Cvs@lists.mmbase.org http://lists.mmbase.org/mailman/listinfo/cvs