Skip to content

Commit

Permalink
Update: Make use of includes/page.xsl for all admin templates
Browse files Browse the repository at this point in the history
  • Loading branch information
ph3-der-loewe committed May 20, 2018
1 parent eb98625 commit 8202dd7
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 128 deletions.
2 changes: 1 addition & 1 deletion admin/includes/page.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<xsl:include href="includes/header.xsl"/>
<xsl:include href="includes/footer.xsl"/>

<xsl:template match="/iceresponse">
<xsl:template match="/node()">
<html>

<xsl:call-template name="head">
Expand Down
25 changes: 4 additions & 21 deletions admin/listclients.xsl
Original file line number Diff line number Diff line change
@@ -1,23 +1,12 @@
<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" indent="yes" />
<!-- 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:include href="includes/mountnav.xsl"/>

<xsl:template match="/icestats">
<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>Listener Stats</h2>

Expand Down Expand Up @@ -61,11 +50,5 @@
</xsl:for-each>

</div>

<!-- Footer -->
<xsl:call-template name="footer" />

</body>
</html>
</xsl:template>
</xsl:stylesheet>
</xsl:stylesheet>
27 changes: 5 additions & 22 deletions admin/listmounts.xsl
Original file line number Diff line number Diff line change
@@ -1,12 +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:include href="includes/mountnav.xsl"/>

<xsl:variable name="title">Stats</xsl:variable>

<!-- Auth template -->
<xsl:template name="authlist">
<ul>
Expand All @@ -32,17 +31,7 @@
</xsl:template>


<xsl:template match="/icestats">
<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:template name="content">
<div class="section">
<h2>Active Mountpoints</h2>
<xsl:choose>
Expand Down Expand Up @@ -82,11 +71,5 @@
</xsl:otherwise>
</xsl:choose>
</div>

<!-- Footer -->
<xsl:call-template name="footer" />

</body>
</html>
</xsl:template>
</xsl:stylesheet>
</xsl:stylesheet>
25 changes: 4 additions & 21 deletions admin/manageauth.xsl
Original file line number Diff line number Diff line change
@@ -1,23 +1,12 @@
<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:include href="includes/mountnav.xsl"/>

<xsl:template match="/icestats">
<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>Manage Authentication</h2>
<xsl:if test="iceresponse">
Expand Down Expand Up @@ -77,11 +66,5 @@
</div>
</xsl:for-each>
</div>

<!-- Footer -->
<xsl:call-template name="footer" />

</body>
</html>
</xsl:template>
</xsl:stylesheet>
</xsl:stylesheet>
25 changes: 4 additions & 21 deletions admin/moveclients.xsl
Original file line number Diff line number Diff line change
@@ -1,23 +1,12 @@
<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:include href="includes/mountnav.xsl"/>

<xsl:template match="/icestats">
<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>Move listeners</h2>
<div class="article">
Expand Down Expand Up @@ -53,11 +42,5 @@
</xsl:choose>
</div>
</div>

<!-- Footer -->
<xsl:call-template name="footer" />

</body>
</html>
</xsl:template>
</xsl:stylesheet>
</xsl:stylesheet>
25 changes: 4 additions & 21 deletions admin/stats.xsl
Original file line number Diff line number Diff line change
@@ -1,12 +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:include href="includes/mountnav.xsl"/>

<xsl:variable name="title">Stats</xsl:variable>

<!-- Auth template -->
<xsl:template name="authlist">
<ul>
Expand All @@ -32,17 +31,7 @@
</xsl:template>


<xsl:template match="/icestats">
<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:template name="content">
<div class="section">
<h2>Administration</h2>

Expand Down Expand Up @@ -163,11 +152,5 @@
</div>
</xsl:for-each>
</div>

<!-- Footer -->
<xsl:call-template name="footer" />

</body>
</html>
</xsl:template>
</xsl:stylesheet>
25 changes: 4 additions & 21 deletions admin/updatemetadata.xsl
Original file line number Diff line number Diff line change
@@ -1,23 +1,12 @@
<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" indent="yes" />
<!-- 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:include href="includes/mountnav.xsl"/>

<xsl:template match="/icestats">
<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>Update Metadata</h2>

Expand All @@ -38,11 +27,5 @@
</xsl:for-each>

</div>

<!-- Footer -->
<xsl:call-template name="footer" />

</body>
</html>
</xsl:template>
</xsl:stylesheet>
</xsl:stylesheet>

0 comments on commit 8202dd7

Please sign in to comment.