Commit 5f962c9b authored by Philipp Schafft's avatar Philipp Schafft 🦁
Browse files

Feature: Nicer display of <metadata>

This adds a little bit nicer display of <metadata> to the stats.xsl
page and avoids broken display of <metadata> and <authentication>.
parent b638d3c9
...@@ -100,11 +100,24 @@ ...@@ -100,11 +100,24 @@
<table class="yellowkeys"> <table class="yellowkeys">
<tbody> <tbody>
<xsl:for-each select="*"> <xsl:for-each select="*">
<xsl:if test="name() != 'metadata' and name() != 'authentication'">
<tr> <tr>
<td><xsl:value-of select="name()" /></td> <td><xsl:value-of select="name()" /></td>
<td><xsl:value-of select="." /></td> <td><xsl:value-of select="." /></td>
</tr> </tr>
</xsl:for-each> </xsl:for-each>
<xsl:if test="metadata">
<th colspan="2">Extra metadata</th>
<xsl:for-each select="metadata/*">
<td><xsl:value-of select="name()" /></td>
<td><xsl:value-of select="." /></td>
</tbody> </tbody>
</table> </table>
<xsl:if test="authentication"> <xsl:if test="authentication">
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment