lenya-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From andr...@apache.org
Subject cvs commit: cocoon-lenya/src/webapp/lenya/xslt/menu menu.xsl
Date Thu, 14 Aug 2003 10:18:29 GMT
andreas     2003/08/14 03:18:29

  Modified:    src/webapp/lenya/xslt/menu menu.xsl
  Log:
  changed links from admin tab to other tabs to /index.html
  
  Revision  Changes    Path
  1.21      +11 -3     cocoon-lenya/src/webapp/lenya/xslt/menu/menu.xsl
  
  Index: menu.xsl
  ===================================================================
  RCS file: /home/cvs/cocoon-lenya/src/webapp/lenya/xslt/menu/menu.xsl,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- menu.xsl	5 Aug 2003 16:32:54 -0000	1.20
  +++ menu.xsl	14 Aug 2003 10:18:29 -0000	1.21
  @@ -32,21 +32,29 @@
        <img border="0" src="/lenya/lenya/menu/images/admin_inactive.gif" />
       </xsl:otherwise></xsl:choose>
     </a>
  -  <a href="{url-info/context-prefix}/{url-info/publication-id}/info{url-info/document-url}">
  +  
  +  <xsl:variable name="document-url">
  +  	<xsl:choose>
  +  		<xsl:when test="url-info/area = 'admin'">/index.html</xsl:when>
  +  		<xsl:otherwise><xsl:value-of select="url-info/document-url"/></xsl:otherwise>
  +  	</xsl:choose>
  +  </xsl:variable>
  +  
  +  <a href="{url-info/context-prefix}/{url-info/publication-id}/info{$document-url}">
      <xsl:choose><xsl:when test="url-info/area = 'info'">
       <img border="0" src="/lenya/lenya/menu/images/info_active.gif" />
       </xsl:when><xsl:otherwise>
        <img border="0" src="/lenya/lenya/menu/images/info_inactive.gif" />
       </xsl:otherwise></xsl:choose>
     </a>
  -  <a href="{url-info/context-prefix}/{url-info/publication-id}/authoring{url-info/document-url}">
  +  <a href="{url-info/context-prefix}/{url-info/publication-id}/authoring{$document-url}">
      <xsl:choose><xsl:when test="url-info/area = 'authoring'">
       <img border="0" src="/lenya/lenya/menu/images/authoring_active.gif" />
       </xsl:when><xsl:otherwise>
        <img border="0" src="/lenya/lenya/menu/images/authoring_inactive.gif" />
       </xsl:otherwise></xsl:choose>
     </a>
  -  <a target="_blank" href="{url-info/context-prefix}/{url-info/publication-id}/live{url-info/document-url}">
  +  <a target="_blank" href="{url-info/context-prefix}/{url-info/publication-id}/live{$document-url}">
       <img border="0" src="/lenya/lenya/menu/images/live_inactive.gif" />
     </a>
   </td>
  
  
  

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


Mime
View raw message