-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmedia.xsl
39 lines (36 loc) · 1.36 KB
/
media.xsl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<table >
<tbody>
<xsl:for-each select="archive/video">
<xsl:variable name="videoIndex" select="position() - 1"/>
<tr>
<td>
<div class="thumbnail">
<a onclick="player.open('{link}')" href="#">
<span class="play">►</span>
<div class="overlay"></div>
</a>
<img src="{thumbnail}"></img>
</div>
</td>
<td style="vertical-align: top;">
<a onclick="player.open('{link}')" href="#">
<xsl:value-of select="title" />
</a>
<a class="button-delete" onclick="database.deleteVideo({$videoIndex})" href="#">X</a>
<span class="rating">
<xsl:value-of select="rating" />/5
</span>
<p>
<xsl:value-of select="description" />
</p>
</td>
</tr>
</xsl:for-each>
</tbody>
</table>
</xsl:template>
</xsl:stylesheet>