You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jackrabbit.apache.org by ju...@apache.org on 2008/12/12 11:34:43 UTC
svn commit: r725960 - /jackrabbit/site/style/template.vm
Author: jukka
Date: Fri Dec 12 02:34:42 2008
New Revision: 725960
URL: http://svn.apache.org/viewvc?rev=725960&view=rev
Log:
site: Added the privacy policy to the site template
Modified:
jackrabbit/site/style/template.vm (contents, props changed)
Modified: jackrabbit/site/style/template.vm
URL: http://svn.apache.org/viewvc/jackrabbit/site/style/template.vm?rev=725960&r1=725959&r2=725960&view=diff
==============================================================================
--- jackrabbit/site/style/template.vm (original)
+++ jackrabbit/site/style/template.vm Fri Dec 12 02:34:42 2008
@@ -1,74 +1,78 @@
-#set($base = "http://jackrabbit.apache.org")
-#macro (simplify $content)
- #set ($content = $content.replaceAll(" rel=\"nofollow\"", ""))
- #set ($content = $content.replaceAll(" title=\"Visit page outside Confluence\"", ""))
- $content
-#end
-#macro (renderPage $title)
- #set($renderer = $action.getGlobalHelper().getWikiStyleRenderer())
- #foreach ($child in $page.space.pages)
- #if (($child.title.equals($title)) && ( $child.contentStatus.equals("current")))
- #set ($content = $renderer.convertWikiToXHtml($child.toPageContext(), $child.content).trim())
- #simplify($content)
- #end
- #end
-#end
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
-<!--
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements. See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership. The ASF licenses this file
- to you 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.
--->
-<html>
- <head>
- <title>$page.title</title>
- <link type="text/css" rel="stylesheet" href="$base/style/site.css">
- </head>
- <body>
- <div id="page">
- <div id="header">
- <p id="jcr"><a href="$base/"><img src="$base/style/jlogo.gif" alt="Apache Jackrabbit" height="100" width="336"></a></p>
- <p id="asf"><a href="http://www.apache.org/"><img src="$base/style/asf-logo.gif" alt="Apache Software Foundation" height="100" width="387"></a></p>
- </div>
- <div id="body">
- <div id="navigation">
-#renderPage("Navigation")
- </div>
- <div id="content">
- <h1>$page.title</h1>
-#simplify($body)
- </div>
- <div id="end"></div>
- </div>
- <div id="footer">
- <p>
- © 2004-2008 The Apache Software Foundation.
- [<a href="$confluenceUri/pages/editpage.action?pageId=$page.id">edit this page</a>]
- </p>
- </div>
- </div>
-<!-- JCR-1315: Add Google Analytics to Jackrabbit web site -->
-<script type="text/javascript">
-var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
-document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
-</script>
-<script type="text/javascript">
-var pageTracker = _gat._getTracker("UA-837900-2");
-pageTracker._initData();
-pageTracker._trackPageview();
-</script>
- </body>
-</html>
+#set($base = "http://jackrabbit.apache.org")
+#macro (simplify $content)
+ #set ($content = $content.replaceAll(" rel=\"nofollow\"", ""))
+ #set ($content = $content.replaceAll(" title=\"Visit page outside Confluence\"", ""))
+ #set ($content = $content.replaceAll("<sup><img class=\"rendericon\" src=\"http://cwiki.apache.org/confluence/images/icons/linkext7.gif\" height=\"7\" width=\"7\" align=\"absmiddle\" alt=\"\" border=\"0\"></sup></a>","</A><SUP><IMG class=\"rendericon\" src=\"http://cwiki.apache.org/confluence/images/icons/linkext7.gif\" height=\"7\" width=\"7\" align=\"absmiddle\" alt=\"\" border=\"0\"></SUP>"))
+ #set ($content = $content.replaceAll("<SUP><IMG class=\"rendericon\" src=\"http://cwiki.apache.org/confluence/images/icons/mail_small.gif\" height=\"12\" width=\"13\" align=\"absmiddle\" alt=\"\" border=\"0\"></SUP></A>","</A><SUP><IMG class=\"rendericon\" src=\"http://cwiki.apache.org/confluence/images/icons/mail_small.gif\" height=\"12\" width=\"13\" align=\"absmiddle\" alt=\"\" border=\"0\"></SUP>"))
+ $content
+#end
+#macro (renderPage $title)
+ #set($renderer = $action.getGlobalHelper().getWikiStyleRenderer())
+ #foreach ($child in $page.space.pages)
+ #if (($child.title.equals($title)) && ( $child.contentStatus.equals("current")))
+ #set ($content = $renderer.convertWikiToXHtml($child.toPageContext(), $child.content).trim())
+ #simplify($content)
+ #end
+ #end
+#end
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you 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.
+-->
+<html>
+ <head>
+ <title>$page.title</title>
+ <link type="text/css" rel="stylesheet" href="$base/style/site.css">
+ </head>
+ <body>
+ <div id="page">
+ <div id="header">
+ <p id="jcr"><a href="$base/"><img src="$base/style/jlogo.gif" alt="Apache Jackrabbit" height="100" width="336"></a></p>
+ <p id="asf"><a href="http://www.apache.org/"><img src="$base/style/asf-logo.gif" alt="Apache Software Foundation" height="100" width="387"></a></p>
+ </div>
+ <div id="body">
+ <div id="navigation">
+#renderPage("Navigation")
+ </div>
+ <div id="content">
+ <h1>$page.title</h1>
+#simplify($body)
+ </div>
+ <div id="end"></div>
+ </div>
+ <div id="footer">
+ <p>
+ © 2004-2008 The Apache Software Foundation.
+ - <a href="$base/privacy-policy.html">Privacy Policy</a> -
+ [<a href="$confluenceUri/pages/editpage.action?pageId=$page.id">edit this page</a>]
+ </p>
+ </div>
+ </div>
+<!-- JCR-1315: Add Google Analytics to Jackrabbit web site -->
+<script type="text/javascript">
+var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
+document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
+</script>
+<script type="text/javascript">
+var pageTracker = _gat._getTracker("UA-837900-2");
+pageTracker._initData();
+pageTracker._trackPageview();
+</script>
+ </body>
+</html>
+
Propchange: jackrabbit/site/style/template.vm
------------------------------------------------------------------------------
svn:eol-style = native