[I'm going to check this in, because the proof is in the pudding --
it needs to work in the built installers.]
Change 20070907-ben-5 by [EMAIL PROTECTED] on 2007-09-07 15:13:12 PDT
in /Users/ben/src/svn/openlaszlo/branches/wafflecone
for http://svn.openlaszlo.org/openlaszlo/branches/wafflecone
Summary: Make links to editor for code examples work
New Features:
Bugs Fixed: LPP-4400 Editor for live code examples in dguide isn't
working
Technical Reviewer: lou (pending)
QA Reviewer: frisco (pending)
Doc Reviewer: (pending)
Documentation:
The editor for the live code examples in the developer's guide had
slight errors in the paths to the editor jsp and to the source file
to edit. This fix corrects them. Note that there are (at least)
two separate ways in which the "edit" button is created by common-
html.xsl.
This change fixes two of those places. If there are more, they will have
to be found and revealed in later changes.
Release Notes:
Details:
Tests:
Files:
M docs/src/xsl/common-html.xsl
Here is the complete change:
Index: docs/src/xsl/common-html.xsl
===================================================================
--- docs/src/xsl/common-html.xsl (revision 6383)
+++ docs/src/xsl/common-html.xsl (working copy)
@@ -198,8 +198,12 @@
<!-- throw in the edit button -->
<xsl:if test="$live">
<xsl:variable name="edit-href">
- <xsl:text>../../laszlo-explorer/editor.jsp?src=</xsl:text>
+ <xsl:text>../../../laszlo-explorer/editor.jsp?src=</xsl:text>
<xsl:value-of select="$localdir"/>
+ <xsl:text>developers/</xsl:text> <!-- TODO: BUG LPP-4683
+ This should not be
hardcoded to developers. What about
+ programs that are in
contributors or deployers? This needs to
+ be parameterized per-book
[bshine 2007.09.07] -->
<xsl:value-of select="$fname"/>
</xsl:variable>
<xsl:text>
</xsl:text>
@@ -291,6 +295,10 @@
<xsl:param name="href">
<xsl:text>../../laszlo-explorer/editor.jsp?src=</xsl:text>
<xsl:value-of select="$localdir"/>
+ <xsl:text>developers/</xsl:text> <!-- TODO: BUG LPP-4683
+ This should not be
hardcoded to developers. What about
+ programs that are in
contributors or deployers? This needs to
+ be parameterized per-book
[bshine 2007.09.07] -->
<xsl:value-of select="."/>
</xsl:param>
<xsl:text>
</xsl:text>
Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20070907-
ben-5.tar