Skip to content

Commit 3dd8bdb

Browse files
committed
Feature: display playlist
1 parent d3370f3 commit 3dd8bdb

File tree

2 files changed

+45
-0
lines changed

2 files changed

+45
-0
lines changed

admin/stats.xsl

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,29 @@
131131
</table>
132132
</xsl:if>
133133

134+
<!-- Extra playlist -->
135+
<xsl:if test="playlist/*">
136+
<h4>Playlist</h4>
137+
<table class="table-block">
138+
<tbody>
139+
<tr>
140+
<th>Album</th>
141+
<th>Track</th>
142+
<th>Creator</th>
143+
<th>Title</th>
144+
</tr>
145+
<xsl:for-each select="playlist/trackList/track">
146+
<tr>
147+
<td><xsl:value-of select="album" /></td>
148+
<td><xsl:value-of select="trackNum" /></td>
149+
<td><xsl:value-of select="creator" /></td>
150+
<td><xsl:value-of select="title" /></td>
151+
</tr>
152+
</xsl:for-each>
153+
</tbody>
154+
</table>
155+
</xsl:if>
156+
134157
<!-- Mount Authentication -->
135158
<xsl:if test="authentication">
136159
<h4>Mount Authentication</h4>

web/status.xsl

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,28 @@
150150
</tr>
151151
</tbody>
152152
</table>
153+
<!-- Extra playlist -->
154+
<xsl:if test="playlist/*">
155+
<h4>Playlist</h4>
156+
<table class="table-block">
157+
<tbody>
158+
<tr>
159+
<th>Album</th>
160+
<th>Track</th>
161+
<th>Creator</th>
162+
<th>Title</th>
163+
</tr>
164+
<xsl:for-each select="playlist/trackList/track">
165+
<tr>
166+
<td><xsl:value-of select="album" /></td>
167+
<td><xsl:value-of select="trackNum" /></td>
168+
<td><xsl:value-of select="creator" /></td>
169+
<td><xsl:value-of select="title" /></td>
170+
</tr>
171+
</xsl:for-each>
172+
</tbody>
173+
</table>
174+
</xsl:if>
153175
</div>
154176
</div>
155177
</xsl:when>

0 commit comments

Comments
 (0)