Use the now-blank column to show TotalItems, as on the TiVo. This could
[pyTivo/wgw.git] / plugins / video / templates / container.xsl
blob0ac93811ccc94bd08a3d3994a25993934db3b958
1 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
2 <xsl:template match="TiVoContainer">
3 <xsl:variable name="tivos" select="Tivos"/>
4 <html>
5 <body>
6 <h2><xsl:value-of select="Details/Title"/></h2>
7 <table border="1">
8 <tr bgcolor="#9acd32">
9 <th align="left">Title</th>
10 <th align="left"></th>
11 </tr>
12 <xsl:for-each select="Item">
13 <xsl:choose>
14 <xsl:when test="Details/ContentType = 'x-container/folder'">
15 <tr bgcolor="#bbbbbb">
16 <td><a><xsl:attribute name="href"><xsl:value-of select="Links/Content/Url"/></xsl:attribute><xsl:value-of select="Details/Title"/></a></td>
17 <td><xsl:value-of select="Details/TotalItems"/></td>
18 </tr>
19 </xsl:when>
20 <xsl:otherwise>
21 <tr>
22 <td><xsl:value-of select="Details/Title"/></td>
23 <td><form action="/TiVoConnect">
24 <input type="hidden" name="Command" value="Push"/>
25 <input type="hidden" name="Container">
26 <xsl:attribute name="value">
27 <xsl:value-of select="Links/Push/Container"/>
28 </xsl:attribute>
29 </input>
30 <input type="hidden" name="File">
31 <xsl:attribute name="value">
32 <xsl:value-of select="Links/Push/File"/>
33 </xsl:attribute>
34 </input>
36 <select name="tsn">
37 <xsl:for-each select="/TiVoContainer/Tivos/Tivo">
38 <option>
39 <xsl:attribute name="value">
40 <xsl:value-of select="."/>
41 </xsl:attribute>
42 <xsl:value-of select="."/>
43 </option>
44 </xsl:for-each>
45 </select>
46 <input value="Send to TiVo" type="submit"/>
47 </form></td>
48 </tr>
49 </xsl:otherwise>
50 </xsl:choose>
51 </xsl:for-each>
52 </table>
53 </body>
54 </html>
55 </xsl:template>
56 </xsl:stylesheet>