You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by db...@apache.org on 2011/10/04 21:54:18 UTC
svn commit: r1178935 - /openejb/site/trunk/templates/template.vm
Author: dblevins
Date: Tue Oct 4 19:54:18 2011
New Revision: 1178935
URL: http://svn.apache.org/viewvc?rev=1178935&view=rev
Log:
the current velocity template from confluence
Added:
openejb/site/trunk/templates/template.vm (with props)
Added: openejb/site/trunk/templates/template.vm
URL: http://svn.apache.org/viewvc/openejb/site/trunk/templates/template.vm?rev=1178935&view=auto
==============================================================================
--- openejb/site/trunk/templates/template.vm (added)
+++ openejb/site/trunk/templates/template.vm Tue Oct 4 19:54:18 2011
@@ -0,0 +1,279 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+##
+#set ($images = "http://openejb.apache.org/images")
+#set ($siteroot = "http://cwiki.apache.org/OPENEJB")
+#set ($globalHelper = $action.getHelper())
+#set ($renderer = $globalHelper.getWikiStyleRenderer())
+##
+#if ( $page.title.equals("Index") )
+ #set ($title = "Home")
+#else
+ #set ($title = $page.title)
+#end
+##
+#macro (renderPage $title)
+ #set($globalHelper = $action.getGlobalHelper())
+ #set($renderer = $globalHelper.getWikiStyleRenderer())
+
+ ##
+ ## FIXME: Must be a more efficent way to find a page...
+ ##
+
+ #foreach ($child in $page.space.pages)
+ #if ($child.title.equals($title))
+ #set ($content = $renderer.convertWikiToXHtml($child.toPageContext(), $child.content).trim())
+
+ ##
+ ## HACK: Remove the leading <P> and trailing </P>
+ ##
+
+ #set ($content = $content.replaceAll("^<[pP]>|</[pP]>$", "") )
+ ##set ($content = $content.substring(3, $content.length()))
+ ##set ($end = $content.length() - 4)
+ ##set ($content = $content.substring(0, $end))
+
+ $content
+ #end
+ #end
+#end
+#macro (renderRightSidePage $title)
+ #set($globalHelper = $action.getGlobalHelper())
+ #set($renderer = $globalHelper.getWikiStyleRenderer())
+
+ ##
+ ## FIXME: Must be a more efficent way to find a page...
+ ##
+
+ #foreach ($child in $page.space.pages)
+ #if ($child.title.equals($title))
+ #set ($content = $renderer.convertWikiToXHtml($child.toPageContext(), $child.content).trim())
+
+ ##
+ ## HACK: Remove the leading <P> and trailing </P>
+ ##
+
+ #set ($content = $content.replaceAll("^<[pP]>|</[pP]>$", "") )
+ ##set ($content = $content.substring(3, $content.length()))
+ ##set ($end = $content.length() - 4)
+ ##set ($content = $content.substring(0, $end))
+<div id="RightContent">
+$content
+</div>
+
+ #end
+ #end
+#end
+##
+<HTML>
+ <HEAD>
+ <!-- $PAGETITLE -->
+ <TITLE>OpenEJB - $title</TITLE>
+ <LINK href="http://openejb.apache.org/all.css" rel="stylesheet" type="text/css">
+ <!--[if IE]><link rel="stylesheet" type="text/css" media="screen, projection" href="openejb.apache.org/ie.css"><![endif]-->
+
+ <LINK rel="SHORTCUT ICON" href="http://openejb.apache.org/images/favicon.ico">
+ <META http-equiv="Content-Type" content="text/html;charset=UTF-8">
+<script language="javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.1/jquery.min.js" type="text/javascript"></script>
+<script language="javascript" src="http://openejb.apache.org/tweet/jquery.tweet.js" type="text/javascript"></script>
+<script type='text/javascript'>
+ $(document).ready(function(){
+ $(".tweet").tweet({
+ avatar_size: 32,
+ count: 4,
+ fetch:25,
+ username: "openejb",
+ list: "contributors",
+ template:"{avatar}{text}",
+ filter: function(t){ return /openejb/i.test(t["tweet_raw_text"]); },
+ loading_text: "loading list..."
+ });
+ });
+</script>
+
+ </HEAD>
+ <BODY>
+
+ <!-- Delay the loading of the external javascript file needed for labels (as it takes too long to load and visibly holds loading of the page body) -->
+ <!-- To do this without javascript errors over undefined functions, we need to declare stubs here (that are overrided later by the proper implementations) -->
+ <SCRIPT language="JavaScript" type="text/javascript">
+ function doAddLabel(hideTextfieldAfterAddParam)
+ {
+ // stub
+ }
+
+ function onAddLabel()
+ {
+ // stub
+ }
+
+ function showLabelsInput()
+ {
+ // stub
+ }
+ </SCRIPT>
+
+ <A name="top"></A>
+ <TABLE class="frameTable" cellpadding="0" cellspacing="0" border="0">
+ <TR class="Row1">
+ <TD class="Col1"><IMG alt="" src="http://openejb.apache.org/images/dotTrans.gif"></TD>
+ <TD class="Col2"><IMG alt="" src="http://openejb.apache.org/images/dotTrans.gif"></TD>
+ <TD class="Col3"><IMG alt="" src="http://openejb.apache.org/images/dotTrans.gif"></TD>
+ <TD class="Col4"><IMG alt="" src="http://openejb.apache.org/images/dotTrans.gif"></TD>
+ <TD class="Col5"><IMG alt="" src="http://openejb.apache.org/images/dotTrans.gif"></TD>
+ </TR>
+ <TR class="Row2">
+ <TD class="Col1"><IMG alt="" src="http://openejb.apache.org/images/dotTrans.gif"></TD>
+ <TD class="Col2"> </TD>
+ <TD class="Col3" id="breadcrumbs">
+ <!-- $TOP_NAV_BAR -->
+ #set($child = $pageManager.getPage($page.space.key,"QuickLinks"))
+ #set($content = $renderer.convertWikiToXHtml($child.toPageContext(), $child.content).trim())
+ #set ($content = $content.replaceAll("^<[pP]>|</[pP]>$", "") )
+ $content
+
+ </TD>
+ <TD class="Col4"><IMG alt="" src="http://openejb.apache.org/images/dotTrans.gif"></TD>
+ <TD class="Col5"> </TD>
+ </TR>
+ <TR class="Row3">
+ <TD class="Col1"><IMG alt="" class="Row3Img" id="thinLine" src="http://openejb.apache.org/images/line_sm.gif"></TD>
+ <TD class="Col2"><IMG alt="" class="Row3Img" src="http://openejb.apache.org/images/dotTrans.gif"></TD>
+ <TD class="Col3"><IMG alt="" class="Row3Img" src="http://openejb.apache.org/images/dotTrans.gif"></TD>
+ <TD class="Col4"><IMG alt="" src="http://openejb.apache.org/images/dotTrans.gif"></TD>
+ <TD class="Col5"><IMG alt="" class="Row3Img" src="http://openejb.apache.org/images/dotTrans.gif"></TD>
+ </TR>
+ <TR class="Row4">
+ <TD class="Col1">
+ <SPAN id="Navigation">
+
+ #set($child = $pageManager.getPage($page.space.key,"Navigation"))
+ #set($content = $renderer.convertWikiToXHtml($child.toPageContext(), $child.content).trim())
+ #set ($content = $content.replaceAll("^<[pP]>|</[pP]>$", "") )
+ $content
+
+ <H3>
+ <A name="Navigation-Feeds"></A>
+ Feeds
+ </H3>
+
+ <UL class="feeds">
+ <li>
+ <A href="http://cwiki.apache.org/confluence/spaces/rss.action?key=OPENEJB&newPages=false">
+ <IMG src="http://openejb.apache.org/images/rss.gif"></a>
+ <A class="feedsText" href="http://cwiki.apache.org/confluence/spaces/rss.action?key=OPENEJB&newPages=false">Site</a>
+ </li>
+
+ <li><A href="http://cwiki.apache.org/confluence/spaces/blogrss.action?key=OPENEJB">
+ <IMG src="http://openejb.apache.org/images/rss.gif"></a>
+ <A class="feedsText" href="http://cwiki.apache.org/confluence/spaces/blogrss.action?key=OPENEJB">News</a>
+ </li>
+ </ul>
+ </SPAN>
+ </TD>
+ <TD class="Col2"> </TD>
+ <TD class="Col3">
+ <TABLE id="PageHeader" border="0" width="100%">
+ <TR>
+ <TD>
+ <A href="http://openejb.org/">
+ <IMG hspace="0" src="http://openejb.apache.org/images/logo_openejb.gif" vspace="0">
+ </A>
+ </TD>
+ <TD align="right">
+ <A href="http://www.apache.org/">
+ <IMG src="http://www.apache.org/images/asf-logo.gif" width="258" height="66">
+ </A>
+ </TD>
+ </TR>
+ <TR>
+ <TD id="page_title">
+ <!-- $TITLE -->
+ $title
+ </TD>
+
+ <TD align="right">
+ <br><br>
+ <!-- Google CSE Search Box Begins -->
+ <FORM id="searchbox_010475492895890475512:_t4iqjrgx90" action="http://www.google.com/cse">
+ <INPUT type="hidden" name="cx" value="010475492895890475512:_t4iqjrgx90">
+ <INPUT type="hidden" name="cof" value="FORID:0">
+ <INPUT name="q" type="text" size="25">
+ <INPUT type="submit" name="sa" value="Search">
+ </FORM>
+ <SCRIPT type="text/javascript"
+ src="http://www.google.com/coop/cse/brand?form=searchbox_010475492895890475512:_t4iqjrgx90"></SCRIPT>
+ <!-- Google CSE Search Box Ends -->
+
+ </TD>
+ </TR>
+ </TABLE>
+ <P>
+ <!-- $BODY -->
+ <DIV id="PageContent">
+ $body
+ </DIV>
+ </P>
+ </TD>
+ <TD class="Col4"><IMG src="http://openejb.apache.org/images/dotTrans.gif"></TD>
+ <TD class="Col5">
+ #if ($pageManager.getPage($page.space.key,"${title}Links"))
+
+ #set($child = $pageManager.getPage($page.space.key,"${title}Links"))
+ #set($content = $renderer.convertWikiToXHtml($child.toPageContext(), $child.content).trim())
+ #set ($content = $content.replaceAll("^<[pP]>|</[pP]>$", "") )
+ <div id="RightContent">$content</div>
+ #end
+
+ </TD>
+ </TR>
+ <TR class="Row5">
+ <TD class="Col1"> </TD>
+ <TD class="Col2"> </TD>
+ <TD class="Col3">
+ <br>
+ <br>
+ <IMG width="100%" height="1" src="http://openejb.apache.org/images/line_light.gif">
+ <table width="100%">
+ <tr>
+ <td>
+ <SPAN class="bodyGrey">
+ <SMALL>
+ <NOTICE><!-- $FOOTER -->
+ Apache OpenEJB is an project of The Apache Software Foundation (ASF)
+ </NOTICE>
+ <BR>
+ Site Powered by
+ <A href="http://atlassian.com/">Atlassian</A>
+ <A href="http://atlassian.com/confluence/">Confluence</A>
+ .
+ </SMALL>
+ </SPAN>
+ </td>
+ <td align="right">
+ <A style="color:#999;font-size:small;font-weight:normal;" href="$confluenceUri/pages/editpage.action?spaceKey=OPENEJBx30&title=$page.title">[ edit ]</A>
+ </td>
+ </tr>
+ </table>
+ <br>
+ </TD>
+ <TD class="Col4"><IMG src="http://openejb.apache.org/images/dotTrans.gif"></TD>
+ <TD class="Col5"> </TD>
+ </TR>
+ </TABLE>
+
+ <!-- Needed for composition plugin -->
+ <!-- delay the loading of large javascript files to the end so that they don't interfere with the loading of page content -->
+ <SPAN style="display: none">
+ <SCRIPT type="text/javascript" language="JavaScript"
+ src="http://cwiki.apache.org/confluence/labels-javascript"></SCRIPT>
+
+ <SCRIPT src="http://www.google-analytics.com/urchin.js" type="text/javascript">
+ </SCRIPT>
+ <SCRIPT type="text/javascript">
+ _uacct = "UA-2717626-1";
+ urchinTracker();
+ </SCRIPT>
+ </SPAN>
+
+ </BODY>
+</HTML>
\ No newline at end of file
Propchange: openejb/site/trunk/templates/template.vm
------------------------------------------------------------------------------
svn:eol-style = native