You are viewing a plain text version of this content. The canonical link for it is here.
Posted to svn@forrest.apache.org by th...@apache.org on 2005/06/05 19:08:32 UTC
svn commit: r180112 - in
/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/resources/templates:
pod-link.ft txt-link.ft
Author: thorsten
Date: Sun Jun 5 10:08:31 2005
New Revision: 180112
URL: http://svn.apache.org/viewcvs?rev=180112&view=rev
Log:
fixed as well this contracts.
Modified:
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/resources/templates/pod-link.ft
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/resources/templates/txt-link.ft
Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/resources/templates/pod-link.ft
URL: http://svn.apache.org/viewcvs/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/resources/templates/pod-link.ft?rev=180112&r1=180111&r2=180112&view=diff
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/resources/templates/pod-link.ft (original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/resources/templates/pod-link.ft Sun Jun 5 10:08:31 2005
@@ -25,13 +25,11 @@
xmlns:forrest="http://apache.org/forrest/templates/1.0"
format="xhtml" name="pod-link" inputFormat="xsl" body="true" head="false">
<xsl:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
- <xsl:template name="xml-body">
- <body>
- <div class="podlink" title="Plain Old Documentation"><a href="{$filename-noext}.pod" class="dida">
- <img class="skin" src="{$skin-img-dir}/poddoc.png" alt="POD - icon" /><br/>
- POD</a>
- </div>
- </body>
+ <xsl:template name="pod-link-body">
+ <div class="podlink" title="Plain Old Documentation"><a href="{$filename-noext}.pod" class="dida">
+ <img class="skin" src="{$skin-img-dir}/poddoc.png" alt="POD - icon" /><br/>
+ POD</a>
+ </div>
</xsl:template>
</xsl:stylesheet>
</forrest:template>
Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/resources/templates/txt-link.ft
URL: http://svn.apache.org/viewcvs/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/resources/templates/txt-link.ft?rev=180112&r1=180111&r2=180112&view=diff
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/resources/templates/txt-link.ft (original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/resources/templates/txt-link.ft Sun Jun 5 10:08:31 2005
@@ -21,35 +21,16 @@
This functions will output the TXT link with image and print link.
</description>
- <forrest:template
- xmlns:forrest="http://apache.org/forrest/templates/1.0"
- format="xhtml" name="txt-link" inputFormat="xsl" body="true" head="false">
-
- <xsl:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
-
- <xsl:template name="txt-link-body">
- <script type="text/javascript" language="Javascript">
- function printit() {
- if (window.print) {
- window.focus();
- window.print();
- }
- }
- </script>
-
- <script type="text/javascript" language="Javascript">
- var NS = (navigator.appName == "Netscape");
- var VERSION = parseInt(navigator.appVersion);
- if (VERSION > 3) {
- document.write('<div class="txt" title="Print this Page">');
- document.write(' <a href="javascript:printit()" class="dida">');
- document.write(' <img class="skin" src="{$skin-img-dir}/printer.gif" alt="print - icon" />');
- document.write(' <br />');
- document.write(' PRINT</a>');
- document.write('</div>');
- }
- </script>
- </xsl:template>
- </xsl:stylesheet>
- </forrest:template>
+ <forrest:template xmlns:forrest="http://apache.org/forrest/templates/1.0"
+ format="xhtml" name="txt-link" inputFormat="xsl" body="true" head="false">
+ <xsl:stylesheet version="1.1"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+ <xsl:template name="txt-link-body">
+ <div class="podlink" title="Plain Text Documentation">
+ <a href="{$filename-noext}.txt" class="dida"> <img class="skin"
+ src="{$skin-img-dir}/txtdoc.png" alt="TXT - icon" /><br/> TXT</a>
+ </div>
+ </xsl:template>
+ </xsl:stylesheet>
+ </forrest:template>
</forrest:contract>