templates/common.xsl
branchv_0
changeset 51 21dfb69028a0
parent 49 1dc027689f93
--- a/templates/common.xsl	Fri Oct 04 19:40:53 2019 +0200
+++ b/templates/common.xsl	Sat Oct 05 21:04:37 2019 +0200
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!--
-	Sane Software Manifesto helper tools
+	Sane software manifesto helper tools
 	Copyright © 2019 František Kučera (Frantovo.cz, GlobalCode.info)
 
     This program is free software: you can redistribute it and/or modify
@@ -27,13 +27,18 @@
 		<xsl:param name="tag"/>
 		<xsl:param name="distance"/>
 		<xsl:param name="hash"/>
+		<xsl:param name="changedFiles"/>
 		
 		<xsl:value-of select="$tag"/>
-		<xsl:if test="$distance &gt; 1">
+		<xsl:if test="$distance &gt; 1 or $changedFiles &gt; 0">
 			<xsl:text>+</xsl:text>
 			<xsl:value-of select="$distance - 1"/>
 			<xsl:text> (</xsl:text>
 			<xsl:value-of select="$hash"/>
+			<xsl:if test="$changedFiles &gt; 0">
+				<xsl:text>+</xsl:text>
+				<xsl:value-of select="$changedFiles"/>
+			</xsl:if>
 			<xsl:text>)</xsl:text>
 		</xsl:if>
 	</xsl:template>