Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Xiph.Org
Icecast-Server
Commits
eb986254
Commit
eb986254
authored
May 04, 2018
by
Philipp Schafft
🦁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update: Added new XSLT include "page" that simplifies the page rendering
parent
42b24d18
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
19 deletions
+30
-19
admin/includes/page.xsl
admin/includes/page.xsl
+27
-0
admin/response.xsl
admin/response.xsl
+3
-19
No files found.
admin/includes/page.xsl
0 → 100644
View file @
eb986254
<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>
admin/response.xsl
View file @
eb986254
<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>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment