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 2005/03/23 16:28:22 UTC
svn commit: r158781 - in lenya/trunk/src/webapp/lenya/usecases/tab: head.jx
sitetree.jx
Author: andreas
Date: Wed Mar 23 07:28:21 2005
New Revision: 158781
URL: http://svn.apache.org/viewcvs?view=rev&rev=158781
Log:
common rendering of all usecase screens based on view configuration
Added:
lenya/trunk/src/webapp/lenya/usecases/tab/head.jx
lenya/trunk/src/webapp/lenya/usecases/tab/sitetree.jx
Added: lenya/trunk/src/webapp/lenya/usecases/tab/head.jx
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/webapp/lenya/usecases/tab/head.jx?view=auto&rev=158781
==============================================================================
--- lenya/trunk/src/webapp/lenya/usecases/tab/head.jx (added)
+++ lenya/trunk/src/webapp/lenya/usecases/tab/head.jx Wed Mar 23 07:28:21 2005
@@ -0,0 +1,32 @@
+<?xml version="1.0"?>
+<!--
+ Copyright 1999-2004 The Apache Software Foundation
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<!-- $Id: overview.jx 123960 2005-01-03 12:39:05Z andreas $ -->
+
+<jx:template
+ xmlns:jx="http://apache.org/cocoon/templates/jx/1.0"
+ xmlns:page="http://apache.org/cocoon/lenya/cms-page/1.0"
+ xmlns:i18n="http://apache.org/cocoon/i18n/2.1"
+ xmlns="http://www.w3.org/1999/xhtml"
+ name="">
+
+ <page:head>
+ <script src="${request.contextPath}/${usecase.getParameter('document').getPublication().getId()}/${usecase.getParameter('private.completeArea')}/info-sitetree/ua.js"/>
+ <script src="${request.contextPath}/${usecase.getParameter('document').getPublication().getId()}/${usecase.getParameter('private.completeArea')}/info-sitetree/tree.js"/>
+ <script src="${request.contextPath}/${usecase.getParameter('document').getPublication().getId()}/${usecase.getParameter('private.completeArea')}/info-sitetree/sitetree.js?language={$chosenlanguage}&incremental={$incremental-loading}"/>
+ </page:head>
+</jx:template>
\ No newline at end of file
Added: lenya/trunk/src/webapp/lenya/usecases/tab/sitetree.jx
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/webapp/lenya/usecases/tab/sitetree.jx?view=auto&rev=158781
==============================================================================
--- lenya/trunk/src/webapp/lenya/usecases/tab/sitetree.jx (added)
+++ lenya/trunk/src/webapp/lenya/usecases/tab/sitetree.jx Wed Mar 23 07:28:21 2005
@@ -0,0 +1,70 @@
+<?xml version="1.0"?>
+<!--
+ Copyright 1999-2004 The Apache Software Foundation
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<!-- $Id: overview.jx 123960 2005-01-03 12:39:05Z andreas $ -->
+
+<jx:template
+ xmlns:jx="http://apache.org/cocoon/templates/jx/1.0"
+ xmlns:i18n="http://apache.org/cocoon/i18n/2.1"
+ xmlns="http://www.w3.org/1999/xhtml"
+ name="">
+
+ <jx:set var="document" value="${usecase.getParameter('document')}"/>
+ <jx:set var="area" value="${document.getArea()}"/>
+ <jx:set var="publicationId" value="${document.getPublication().getId()}"/>
+
+ <table border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <jx:forEach var="language" items="${document.getPublication().getLanguages()}">
+
+ <jx:set var="languageVersion"
+ value="${document.getIdentityMap().getFactory().getLanguageVersion(document, language)}"/>
+ <jx:set var="languageUrl"
+ value="${request.contextPath + publicationId + '/info-' + area + languageVersion.getCanonicalDocumentURL()}"/>
+
+ <td>
+ <jx:choose>
+ <jx:when test="${language.equals(document.getLanguage())}">
+ <a id="${language}" class="lenya-tablink-active" href="${languageUrl}"><jx:out value="${language}"/></a>
+ </jx:when>
+ <jx:otherwise>
+ <a id="${language}" class="lenya-tablink" href="${languageUrl}"><jx:out value="${language}"/></a>
+ </jx:otherwise>
+ </jx:choose>
+ </td>
+ </jx:forEach>
+ </tr>
+ </table>
+
+ <div id="lenya-info-tree">
+ <div style="display:none;">
+ <table border="0">
+ <tr>
+ <td>
+ <a style="font-size:7pt;text-decoration:none;color:white"
+ href="http://www.treemenu.net/" target="_blank">JavaScript Tree Menu</a>
+ </td>
+ </tr>
+ </table>
+ </div>
+ <jx:set var="url" value="${request.contextPath + '/' + publicationId + '/info-' + area + document.getCanonicalDocumentURL()}"/>
+ <script>
+ initializeDocument('<jx:out value="${area}"/>', '<jx:out value="${document.getId()}"/>');
+ loadSynchPage('<jx:out value="${url}"/>');
+ </script>
+ </div>
+</jx:template>
\ No newline at end of file
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org