1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-12-04 14:46:30 -05:00

Update: Added new XSLT include "page" that simplifies the page rendering

This commit is contained in:
Philipp Schafft 2018-05-04 12:52:29 +00:00
parent 42b24d1840
commit eb98625467
2 changed files with 30 additions and 19 deletions

27
admin/includes/page.xsl Normal file
View File

@ -0,0 +1,27 @@
<xsl:stylesheet xmlns:xsl = "http://www.w3.org/1999/XSL/Transform" version = "1.0">
<xsl:output method="html" doctype-system="about:legacy-compat" encoding="UTF-8" />
<!-- Import include files -->
<xsl:include href="includes/head.xsl"/>
<xsl:include href="includes/header.xsl"/>
<xsl:include href="includes/footer.xsl"/>
<xsl:template match="/iceresponse">
<html>
<xsl:call-template name="head">
<xsl:with-param name="title" select="$title" />
</xsl:call-template>
<body>
<!-- Header/Menu -->
<xsl:call-template name="header" />
<xsl:call-template name="content" />
<!-- Footer -->
<xsl:call-template name="footer" />
</body>
</html>
</xsl:template>
</xsl:stylesheet>

View File

@ -1,21 +1,11 @@
<xsl:stylesheet xmlns:xsl = "http://www.w3.org/1999/XSL/Transform" version = "1.0">
<xsl:output method="html" doctype-system="about:legacy-compat" encoding="UTF-8" />
<!-- Import include files -->
<xsl:include href="includes/head.xsl"/>
<xsl:include href="includes/header.xsl"/>
<xsl:include href="includes/footer.xsl"/>
<xsl:include href="includes/page.xsl"/>
<xsl:template match="/iceresponse">
<html>
<xsl:call-template name="head">
<xsl:with-param name="title">Stats</xsl:with-param>
</xsl:call-template>
<body>
<!-- Header/Menu -->
<xsl:call-template name="header" />
<xsl:variable name="title">Stats</xsl:variable>
<xsl:template name="content">
<div class="section">
<h2>Server Response</h2>
<xsl:for-each select="/iceresponse">
@ -27,11 +17,5 @@
</div>
</xsl:for-each>
</div>
<!-- Footer -->
<xsl:call-template name="footer" />
</body>
</html>
</xsl:template>
</xsl:stylesheet>