1<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="iso-8859-1" %>
2<%@ include file="include.jsp" %>
3
4<c:if test="${param.bug}">
5    <script type="text/javascript">
6        $(document).ready(function () {
7			// reconfiguring the toasts as sticky
8			$().toastmessage({sticky:true});
9            $().toastmessage("showErrorToast", "${param.bugInfo}"); // <fmt:message key="common.bug"/>
10        });
11    </script>
12</c:if>
13
14<c:if test="${param.warn}">
15    <script type="text/javascript">
16        $(document).ready(function () {
17			// reconfiguring the toasts as sticky
18			$().toastmessage({sticky:true});
19            $().toastmessage("showWarningToast", "${param.warnInfo}" );
20        });
21    </script>
22</c:if>
23
24<c:if test="${param.toast}">
25    <script type="text/javascript">
26        $(document).ready(function () {
27			$().toastmessage({sticky:false});
28            $().toastmessage("showNoticeToast", "<fmt:message key="common.settingssaved"/>");
29        });
30    </script>
31</c:if>
32
33<c:if test="${param.done}">
34    <script type="text/javascript">
35        $(document).ready(function () {
36			$().toastmessage({sticky:false});
37            $().toastmessage("showSuccessToast", "<fmt:message key="common.done"/>");
38        });
39    </script>
40</c:if>
41
42<c:choose>
43    <c:when test="${param.restricted eq true}">
44        <c:set var="categories" value="${param.demo ? 'personal avatar share' : 'personal avatar password player share'}"/>
45    </c:when>
46    <c:otherwise>
47        <c:set var="categories" value="${'admin musicFolder musicFolderTasks folder general advanced personal avatar default user group access icon lastfm player followMe internetRadio podcast transcoding cleanup playlist audioAd share network node ldap dlna sonos signup approve api audioConversion videoConversion premium'}"/>
48    </c:otherwise>
49</c:choose>
50
51    <h1>
52    <img src="<spring:theme code="settingsImage"/>" width="32" alt=""/>
53    <fmt:message key="settingsheader.title"/>
54</h1>
55
56<h2 style="max-width:800px">
57<c:forTokens items="${categories}" delims=" " var="cat" varStatus="loopStatus">
58    <c:choose>
59        <c:when test="${loopStatus.count > 1 and  (loopStatus.count - 1) % 50 != 0}">&nbsp;<img src="<spring:theme code="sepImage"/>" alt="">&nbsp;</c:when>
60        <c:otherwise></h2><h2></c:otherwise>
61    </c:choose>
62
63    <c:url var="url" value="${cat}Settings.view?"/>
64
65    <c:choose>
66        <c:when test="${param.cat eq cat}">
67            <span class="headerSelected"><fmt:message key="settingsheader.${cat}"/></span>
68        </c:when>
69        <c:otherwise>
70            <a href="${url}"><fmt:message key="settingsheader.${cat}"/></a>
71        </c:otherwise>
72    </c:choose>
73
74</c:forTokens>
75</h2>
76
77<p></p>
78