My fork of airsonic with experimental fixes and improvements. See branch "custom"
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

112 lines
4.2 KiB

<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="iso-8859-1"%>
<!DOCTYPE html>
<html><head>
<%@ include file="head.jsp" %>
<meta http-equiv="CACHE-CONTROL" content="NO-CACHE">
<meta http-equiv="REFRESH" content="20;URL=status.view">
</head>
<body class="mainframe bgcolor1">
<h1>
<img src="<spring:theme code="statusImage"/>" alt="">
<span style="vertical-align: middle"><fmt:message key="status.title"/></span>
</h1>
<table width="100%" class="ruleTable indent">
<tr>
<th class="ruleTableHeader"><fmt:message key="status.type"/></th>
<th class="ruleTableHeader"><fmt:message key="status.player"/></th>
<th class="ruleTableHeader"><fmt:message key="status.user"/></th>
<th class="ruleTableHeader"><fmt:message key="status.current"/></th>
<th class="ruleTableHeader"><fmt:message key="status.transmitted"/></th>
<th class="ruleTableHeader"><fmt:message key="status.bitrate"/></th>
</tr>
<c:forEach items="${model.transferStatuses}" var="status">
<c:choose>
<c:when test="${empty status.playerType}">
<fmt:message key="common.unknown" var="type"/>
</c:when>
<c:otherwise>
<c:set var="type" value="(${status.playerType})"/>
</c:otherwise>
</c:choose>
<c:choose>
<c:when test="${status.stream}">
<fmt:message key="status.stream" var="transferType"/>
</c:when>
<c:when test="${status.download}">
<fmt:message key="status.download" var="transferType"/>
</c:when>
<c:when test="${status.upload}">
<fmt:message key="status.upload" var="transferType"/>
</c:when>
</c:choose>
<c:choose>
<c:when test="${empty status.username}">
<fmt:message key="common.unknown" var="user"/>
</c:when>
<c:otherwise>
<c:set var="user" value="${status.username}"/>
</c:otherwise>
</c:choose>
<c:choose>
<c:when test="${empty status.path}">
<fmt:message key="common.unknown" var="current"/>
</c:when>
<c:otherwise>
<c:set var="current" value="${status.path}"/>
</c:otherwise>
</c:choose>
<sub:url value="/statusChart.view" var="chartUrl">
<c:if test="${status.stream}">
<sub:param name="type" value="stream"/>
</c:if>
<c:if test="${status.download}">
<sub:param name="type" value="download"/>
</c:if>
<c:if test="${status.upload}">
<sub:param name="type" value="upload"/>
</c:if>
<sub:param name="index" value="${status.index}"/>
</sub:url>
<tr>
<td class="ruleTableCell">${transferType}</td>
<td class="ruleTableCell">${status.player}<br>${type}</td>
<td class="ruleTableCell">${user}</td>
<td class="ruleTableCell">${current}</td>
<td class="ruleTableCell">${status.bytes}</td>
<td class="ruleTableCell" width="${model.chartWidth}"><img width="${model.chartWidth}" height="${model.chartHeight}" src="${chartUrl}" alt=""></td>
</tr>
</c:forEach>
</table>
<table style="width:100%;padding-top:3em">
<tr>
<th><fmt:message key="home.chart.total"/></th>
<th><fmt:message key="home.chart.stream"/></th>
</tr>
<tr>
<td><img src="<c:url value="/userChart.view"><c:param name="type" value="total"/></c:url>" alt=""></td>
<td><img src="<c:url value="/userChart.view"><c:param name="type" value="stream"/></c:url>" alt=""></td>
</tr>
<tr>
<th><fmt:message key="home.chart.download"/></th>
<th><fmt:message key="home.chart.upload"/></th>
</tr>
<tr>
<td><img src="<c:url value="/userChart.view"><c:param name="type" value="download"/></c:url>" alt=""></td>
<td><img src="<c:url value="/userChart.view"><c:param name="type" value="upload"/></c:url>" alt=""></td>
</tr>
</table>
<div class="forward"><a href="status.view?"><fmt:message key="common.refresh"/></a></div>
</body></html>