aboutsummaryrefslogtreecommitdiff
path: root/subsonic-main/src/main/webapp/WEB-INF/jsp/wap/searchResult.jsp
blob: 2267c0692451d89e01f932e979b0ebdb14a6290e (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
<?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" %>
    <card id="main" title="Subsonic" newcontext="false">
        <p><small>

            <c:choose>
                <c:when test="${model.creatingIndex}">
                    <fmt:message key="wap.searchresult.index"/>
                </c:when>

                <c:otherwise>
                    <c:forEach items="${model.hits}" var="hit">
                        <sub:url var="url" value="/wap/browse.view">
                            <sub:param name="path" value="${hit.path}"/>
                        </sub:url>
                        <a href="${url}">${fn:escapeXml(hit.title)}</a><br/>
                    </c:forEach>
                </c:otherwise>
            </c:choose>
        </small></p>
    </card>

</wml>