You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by gr...@apache.org on 2005/01/10 06:29:02 UTC

svn commit: r124771 - /lenya/branches/BRANCH_1_2_X/src/webapp/lenya/content/info/overview.xsp /lenya/branches/BRANCH_1_2_X/src/webapp/lenya/xslt/info/info.xsl

Author: gregor
Date: Sun Jan  9 21:29:00 2005
New Revision: 124771

URL: http://svn.apache.org/viewcvs?view=rev&rev=124771
Log:
Backported patch to show resource type in the overview tab
Modified:
   lenya/branches/BRANCH_1_2_X/src/webapp/lenya/content/info/overview.xsp
   lenya/branches/BRANCH_1_2_X/src/webapp/lenya/xslt/info/info.xsl

Modified: lenya/branches/BRANCH_1_2_X/src/webapp/lenya/content/info/overview.xsp
Url: http://svn.apache.org/viewcvs/lenya/branches/BRANCH_1_2_X/src/webapp/lenya/content/info/overview.xsp?view=diff&rev=124771&p1=lenya/branches/BRANCH_1_2_X/src/webapp/lenya/content/info/overview.xsp&r1=124770&p2=lenya/branches/BRANCH_1_2_X/src/webapp/lenya/content/info/overview.xsp&r2=124771
==============================================================================
--- lenya/branches/BRANCH_1_2_X/src/webapp/lenya/content/info/overview.xsp	(original)
+++ lenya/branches/BRANCH_1_2_X/src/webapp/lenya/content/info/overview.xsp	Sun Jan  9 21:29:00 2005
@@ -94,6 +94,7 @@
 						<!-- <lenya-info:lastmodifiedby></lenya-info:lastmodifiedby> -->
 						<lenya-info:lastmodified><input:get-attribute module="page-envelope" as="object" name="document-lastmodified"/></lenya-info:lastmodified>
 						<lenya-info:documentid><input:get-attribute module="page-envelope" as="object" name="document-id"/></lenya-info:documentid>
+						<lenya-info:resource-type><input:get-attribute module="page-envelope" as="object" name="document-type"/></lenya-info:resource-type>
 						<lenya-info:area></lenya-info:area>
 						<lenya-info:workflow-state><input:get-attribute module="workflow" as="string" name="state"/></lenya-info:workflow-state>
 						<lenya-info:is-live><input:get-attribute module="workflow" as="string" name="variable.is_live"/></lenya-info:is-live>

Modified: lenya/branches/BRANCH_1_2_X/src/webapp/lenya/xslt/info/info.xsl
Url: http://svn.apache.org/viewcvs/lenya/branches/BRANCH_1_2_X/src/webapp/lenya/xslt/info/info.xsl?view=diff&rev=124771&p1=lenya/branches/BRANCH_1_2_X/src/webapp/lenya/xslt/info/info.xsl&r1=124770&p2=lenya/branches/BRANCH_1_2_X/src/webapp/lenya/xslt/info/info.xsl&r2=124771
==============================================================================
--- lenya/branches/BRANCH_1_2_X/src/webapp/lenya/xslt/info/info.xsl	(original)
+++ lenya/branches/BRANCH_1_2_X/src/webapp/lenya/xslt/info/info.xsl	Sun Jan  9 21:29:00 2005
@@ -108,6 +108,7 @@
    <!-- <tr><td>Last edited by:</td><td><xsl:value-of select="lenya-info:lastmodifiedby"/></td></tr> -->
    <tr><td class="lenya-entry-caption"><i18n:text>Last modified</i18n:text>:</td><td><xsl:value-of select="lenya-info:lastmodified"/></td></tr>
    <tr><td class="lenya-entry-caption"><i18n:text>Document ID</i18n:text>:</td><td><xsl:value-of select="lenya-info:documentid"/></td></tr>
+   <tr><td class="lenya-entry-caption"><i18n:text>Resource Type</i18n:text>:</td><td><xsl:value-of select="lenya-info:resource-type"/></td></tr>
    <tr><td class="lenya-entry-caption"><i18n:text>Visibility in navigation</i18n:text>:</td><td><i18n:text><xsl:value-of select="lenya-info:visibleinnav"/></i18n:text></td></tr>
    </table>
   </xsl:when>
@@ -185,6 +186,7 @@
     <table class="lenya-table">
       <tr>
         <th><i18n:text>Assets</i18n:text></th>
+        <th><i18n:text>Preview</i18n:text></th>
         <th><i18n:text>Title</i18n:text></th>
         <th><i18n:text>File Size</i18n:text></th>
         <th><i18n:text>Creation Date</i18n:text></th>
@@ -194,6 +196,11 @@
         <xsl:sort select="dc:title"/>
         <tr>
           <td><xsl:value-of select="dc:source"/></td>
+          <td>        
+            <xsl:if test="dc:format = 'image/jpeg' or dc:format = 'image/gif' or  dc:format = 'image/png'">
+                <img src="../authoring/{../lenya-info:documentnodeid}/{dc:source}" style="height: 32px; vertical-align: middle;"/>&#160;
+            </xsl:if>
+           </td>
           <td><xsl:value-of select="dc:title"/></td>
           <td align="right"><xsl:value-of select="dc:extent"/> kB</td>
           <td align="right"><xsl:value-of select="dc:date"/></td>

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org