forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dirk.Drazeno...@t-online.de (Dirk Drazenovic)
Subject Re: Changes bugid link always points to nagoya
Date Mon, 02 Jun 2003 09:51:23 GMT
Nick Chalko wrote:
> How can I change the url used to link bugs on the changes page.
> for example http://www.krysalis.org/centipede/changes.html

Edit the changes2document.xsl (forrest/context/library/xslt).

Change the value of the variable "bugzilla" to suit your needs.

To add multiple trackers, e.g. RFE's just add a new variable and a section
similar to fixes-bug. Here is what i did, for a SourceForge RFE Tracker:

---schnipp---
[...]
 <xsl:variable
name="bugzilla">http://sourceforge.net/tracker/index.php?func=detail&amp;gro
up_id=67477&amp;atid=518006&amp;aid=</xsl:variable>
 <xsl:variable
name="issue-tracker">http://sourceforge.net/tracker/index.php?func=detail&am
p;group_id=67477&amp;atid=562415&amp;aid=</xsl:variable>

 [...]
 <xsl:template match="action">
  [...]
   <xsl:if test="@fixes-bug">

    [...]
   </xsl:if>

   <xsl:if test="@issue">
    <xsl:text> Resolves issue </xsl:text>
    <link href="{$issue-tracker}{@issue}">
     <xsl:text>#</xsl:text><xsl:value-of select="@issue"/>
    </link>
    <xsl:text>.</xsl:text>
   </xsl:if>
[...]
---schnapp---

It is possible to use a new attribute within an action
(issue="issuenumber").

HTH, Dirk


Mime
View raw message