You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by th...@apache.org on 2006/03/09 17:33:57 UTC
svn commit: r384548 -
/lenya/trunk/src/modules/opendocument/config/menus/opendocument.xsp
Author: thorsten
Date: Thu Mar 9 08:33:55 2006
New Revision: 384548
URL: http://svn.apache.org/viewcvs?rev=384548&view=rev
Log:
Finishing up the odt module download feature. Now we "just" have to make the whole module more generic
Modified:
lenya/trunk/src/modules/opendocument/config/menus/opendocument.xsp
Modified: lenya/trunk/src/modules/opendocument/config/menus/opendocument.xsp
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/modules/opendocument/config/menus/opendocument.xsp?rev=384548&r1=384547&r2=384548&view=diff
==============================================================================
--- lenya/trunk/src/modules/opendocument/config/menus/opendocument.xsp (original)
+++ lenya/trunk/src/modules/opendocument/config/menus/opendocument.xsp Thu Mar 9 08:33:55 2006
@@ -35,8 +35,6 @@
<menu>
-<!-- TODO: New and edit implementation needs to be finished" -->
-
<menus>
<menu i18n:attr="name" name="File">
<block admin="false">
@@ -46,12 +44,18 @@
<menu i18n:attr="name" name="Edit">
<xsp:logic>
String doctype = <input:get-attribute module="page-envelope" as="string" name="document-type"/>;
+ String requestURI = <input:get-attribute module="request" as="string" name="requestURI"/>;
+ String moduleURI = requestURI.substring(0,requestURI.lastIndexOf(".html")).concat(".odt?lenya.module=opendocument");
if ("opendocument".equals(doctype)) {
- <!--<block info="false">
- <item wf:event="edit" uc:usecase="module.odt.download" href="?"><i18n:text>Download ODT</i18n:text></item>
- </block>-->
<block info="false">
- <item wf:event="edit" uc:usecase="module.odt.upload" href="?"><i18n:text>Upload ODT</i18n:text></item>
+ <item>
+ <xsp:attribute name="href">
+ <xsp:expr>moduleURI</xsp:expr>
+ </xsp:attribute>
+ <i18n:text>Download ODT</i18n:text></item>
+ </block>
+ <block info="false">
+ <item uc:usecase="module.odt.upload" href="?"><i18n:text>Upload ODT</i18n:text></item>
</block>
}
</xsp:logic>
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org