DrTrigon has submitted this change and it was merged. Change subject: improvement; added some cross-link capabilities and completed output view ......................................................................
improvement; added some cross-link capabilities and completed output view Change-Id: If0105ec01f9f1c9acc817f03a64f7084e021f9f8 --- M public_html/cgi-bin/jira2html.xslt 1 file changed, 33 insertions(+), 10 deletions(-) Approvals: DrTrigon: Verified; Looks good to me, approved diff --git a/public_html/cgi-bin/jira2html.xslt b/public_html/cgi-bin/jira2html.xslt index 5d39646..43476dd 100644 --- a/public_html/cgi-bin/jira2html.xslt +++ b/public_html/cgi-bin/jira2html.xslt @@ -98,13 +98,14 @@ <tr> <td bgcolor="#f0f0f0" width="100%" colspan="2" valign="top"> <xsl:if test="parent != ''"> + <xsl:variable name="data" select="parent"/> <b><a><xsl:attribute name="id"> parent_issue_summary </xsl:attribute> <xsl:attribute name="href"> https://jira.toolserver.org/browse/<xsl:value-of select="parent"/> </xsl:attribute> - ???</a></b> + <xsl:value-of select="//item[key=$data]/summary"/><xsl:if test="not(//item[key=$data])">(n/a)</xsl:if></a></b> <span style="font-size: 9px">(<a><xsl:attribute name="id"> parent_issue_key </xsl:attribute> @@ -288,7 +289,7 @@ <b>Environment:</b> </td> <td bgcolor="#ffffff" valign="top" colspan="3"> - <xsl:value-of select="environment"/> + <xsl:value-of select="environment" disable-output-escaping="yes"/> </td> </tr> </xsl:if> @@ -308,7 +309,7 @@ <td bgcolor="#ffffff" valign="top"> <xsl:for-each select="attachments/attachment"> <img src="https://jira.toolserver.org/images/icons/attach/file.gif" height="16" width="16" alt="File" /> - <xsl:value-of select="./@name"/>, + <xsl:value-of select="./@name"/>      </xsl:for-each> </td> </tr> @@ -333,14 +334,25 @@ <td> <xsl:value-of select="../@description"/> </td> + <xsl:variable name="data" select="issuekey"/> <td> - <xsl:value-of select="issuekey"/> + <a><xsl:attribute name="href"> + https://jira.toolserver.org/browse/<xsl:value-of select="issuekey"/> + </xsl:attribute> + <xsl:choose> + <xsl:when test="//item[key=$data]/status = 'Closed' or //item[key=$data]/status = 'Resolved'"> + <strike><xsl:value-of select="issuekey"/></strike> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="issuekey"/> + </xsl:otherwise> + </xsl:choose></a> </td> <td> - ??? + <xsl:value-of select="//item[key=$data]/summary"/><xsl:if test="not(//item[key=$data])">(n/a)</xsl:if> </td> <td> - ??? + <xsl:value-of select="//item[key=$data]/status"/><xsl:if test="not(//item[key=$data])">(n/a)</xsl:if> </td> </tr> </xsl:for-each> @@ -380,17 +392,18 @@ </xsl:attribute> <xsl:value-of select="."/></a> </td> + <xsl:variable name="data" select="."/> <td valign="top" width="25%"> - ??? + <xsl:value-of select="substring(//item[key=$data]/summary,0,38)"/><xsl:if test="string-length(//item[key=$data]/summary)>38">...</xsl:if><xsl:if test="not(//item[key=$data])">(n/a)</xsl:if> </td> <td> Sub-task </td> <td> - ??? + <xsl:value-of select="//item[key=$data]/status"/><xsl:if test="not(//item[key=$data])">(n/a)</xsl:if> </td> <td> - ??? + <xsl:value-of select="//item[key=$data]/assignee"/><xsl:if test="not(//item[key=$data])">(n/a)</xsl:if> </td> </tr> </xsl:for-each> @@ -405,7 +418,17 @@ <td bgcolor="#f0f0f0" width="20%" valign="top"><b><xsl:value-of select="customfieldname"/>:</b></td> <td id="customfield_10010-27325-value" class="value" bgcolor="#ffffff" width="80%"> <xsl:for-each select="customfieldvalues"> - <xsl:value-of select="customfieldvalue"/><br /> + <xsl:choose> + <xsl:when test="../customfieldname = 'URL'"> + <a><xsl:attribute name="href"> + <xsl:value-of select="customfieldvalue"/> + </xsl:attribute> + <xsl:value-of select="customfieldvalue"/></a><br /> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="customfieldvalue"/><br /> + </xsl:otherwise> + </xsl:choose> </xsl:for-each> </td> </tr> -- To view, visit https://gerrit.wikimedia.org/r/110645 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: If0105ec01f9f1c9acc817f03a64f7084e021f9f8 Gerrit-PatchSet: 1 Gerrit-Project: pywikibot/bots/drtrigonbot Gerrit-Branch: master Gerrit-Owner: DrTrigon <dr.tri...@surfeu.ch> Gerrit-Reviewer: DrTrigon <dr.tri...@surfeu.ch> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits