commit: 35bbf8129c2d9353a62d0d0c7d7253b9c488cb59
parent 8eff3aa0a49bbbdfdce47c6e81961c43323c9e40
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Fri, 7 Apr 2023 14:20:26 +0200
nginx_autoindex.xsl.in: Format sizes with grouping-separator
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/nginx_autoindex.xsl.in b/nginx_autoindex.xsl.in
@@ -52,7 +52,7 @@
<xsl:template match="/list/file"><tr>
<td><a href="./{str:encode-uri(./text(), true(), 'UTF-8')}"><xsl:value-of select="./text()"/></a></td>
- <td data-type="int" data-value="{@size}"><xsl:value-of select="@size"/> B</td>
+ <td data-type="int" data-value="{@size}"><xsl:number value="@size" grouping-separator=" " grouping-size="3"/> B</td>
<td><xsl:value-of select="@mtime"/></td>
</tr></xsl:template>
</xsl:stylesheet>