blob: 481e00d3189e396cca619199545ebf89df52897a (
plain)
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<%@ page language="java" contentType="text/vnd.wap.wml; charset=utf-8" pageEncoding="iso-8859-1"%>
<wml>
<%@ include file="head.jsp" %>
<c:if test="${fn:length(model.players) eq 1}">
<c:choose>
<c:when test="${empty model.players[0].name}">
<c:set var="playerName" value=" - Player ${model.players[0].id}"/>
</c:when>
<c:otherwise>
<c:set var="playerName" value=" - ${model.players[0].name}"/>
</c:otherwise>
</c:choose>
</c:if>
<card id="main" title="Subsonic" newcontext="false">
<p><small><b><fmt:message key="wap.playlist.title"/>${playerName}</b></small></p>
<p><small>
<c:choose>
<c:when test="${empty model.players}">
<fmt:message key="wap.playlist.noplayer"/>
</c:when>
<c:otherwise>
<b><a href="<c:url value="/wap/index.view"/>">[<fmt:message key="common.home"/>]</a></b><br/>
<b><a href="<c:url value="/wap/loadPlaylist.view"/>">[<fmt:message key="wap.playlist.load"/>]</a></b><br/>
<b><a href="<c:url value="/wap/playlist.view?random"/>">[<fmt:message key="wap.playlist.random"/>]</a></b><br/>
<c:set var="playlist" value="${model.players[0].playlist}"/>
<c:if test="${not empty playlist.files}">
<b><a href="<c:url value="/play.m3u"/>">[<fmt:message key="wap.playlist.play"/>]</a></b><br/>
<b><a href="<c:url value="/wap/playlist.view?clear"/>">[<fmt:message key="wap.playlist.clear"/>]</a></b><br/>
</small></p>
<p><small>
<c:forEach items="${playlist.files}" var="file" varStatus="loopStatus">
<c:set var="isCurrent" value="${(file eq playlist.currentFile) and (loopStatus.count - 1 eq playlist.index)}"/>
${isCurrent ? "<b>" : ""}
<a href="<c:url value="/wap/playlist.view?skip=${loopStatus.count - 1}"/>">${fn:escapeXml(file.title)}</a>
${isCurrent ? "</b>" : ""}
<br/>
</c:forEach>
</c:if>
</c:otherwise>
</c:choose>
</small></p>
</card>
</wml>
|