You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by an...@apache.org on 2003/09/05 18:07:49 UTC

cvs commit: cocoon-lenya/src/webapp/lenya/content/menus info.xsp

andreas     2003/09/05 09:07:49

  Modified:    src/webapp/lenya/content/menus info.xsp
  Log:
  showing item "Paste" only when clipboard is not empty
  
  Revision  Changes    Path
  1.15      +11 -1     cocoon-lenya/src/webapp/lenya/content/menus/info.xsp
  
  Index: info.xsp
  ===================================================================
  RCS file: /home/cvs/cocoon-lenya/src/webapp/lenya/content/menus/info.xsp,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- info.xsp	5 Sep 2003 14:41:46 -0000	1.14
  +++ info.xsp	5 Sep 2003 16:07:49 -0000	1.15
  @@ -49,7 +49,17 @@
         <block>
           <item><xsp:attribute name="href"><xsp-request:get-uri/>?lenya.usecase=cut&amp;lenya.step=showscreen</xsp:attribute>Cut</item>
           <item><xsp:attribute name="href"><xsp-request:get-uri/>?lenya.usecase=copy&amp;lenya.step=showscreen</xsp:attribute>Copy</item>
  -        <item><xsp:attribute name="href"><xsp-request:get-uri/>?lenya.usecase=paste&amp;lenya.step=showscreen</xsp:attribute>Paste</item>
  +        
  +        <xsp:logic>
  +        	String clipboard = (String) <input:get-attribute module="session-attr" as="object" name="org.apache.lenya.cms.info.firstdocid"/>;
  +        	if (clipboard != null &amp;&amp; !"".equals(clipboard)) {
  +		        <xsp:content><item href="?lenya.usecase=paste&amp;lenya.step=showscreen">Paste</item></xsp:content>
  +        	}
  +        	else {
  +		        <xsp:content><item>Paste</item></xsp:content>
  +        	}
  +        </xsp:logic>
  +        
         </block>
         <block>
           <item><xsp:attribute name="href"><xsp-request:get-uri/>?lenya.usecase=rename&amp;lenya.step=showscreen</xsp:attribute>Rename</item>
  
  
  

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