Files
i2p.i2p-bote/src/main/webapp/statusFrame.jsp

99 lines
3.7 KiB
Plaintext
Raw Normal View History

2009-12-01 07:10:56 +00:00
<%--
Copyright (C) 2009 HungryHobo@mail.i2p
The GPG fingerprint for HungryHobo@mail.i2p is:
6DD3 EAA2 9990 29BC 4AD2 7486 1E2C 7B61 76DC DC12
This file is part of I2P-Bote.
I2P-Bote is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
I2P-Bote is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with I2P-Bote. If not, see <http://www.gnu.org/licenses/>.
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
2015-01-24 12:31:42 +00:00
<!DOCTYPE html>
2009-12-01 07:10:56 +00:00
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="csrf" uri="http://www.owasp.org/index.php/Category:OWASP_CSRFGuard_Project/Owasp.CsrfGuard.tld" %>
2009-12-01 07:10:56 +00:00
<%@ taglib prefix="ib" uri="I2pBoteTags" %>
<jsp:useBean id="jspHelperBean" class="i2p.bote.web.JSPHelper"/>
<c:set var="themeDir" value="themes/${jspHelperBean.configuration.theme}" scope="request"/>
<jsp:include page="getStatus.jsp"/>
2009-12-13 07:12:07 +00:00
2009-12-01 07:10:56 +00:00
<html>
<head>
2015-01-24 12:31:42 +00:00
<meta charset="utf-8">
<link rel="stylesheet" href="themes/${jspHelperBean.configuration.theme}/i2pbote.css?v=${jspHelperBean.appVersion}" />
<c:if test="${connStatus ne CONNECTED and connStatus ne ERROR}">
<meta http-equiv="refresh" content="20" />
</c:if>
2009-12-01 07:10:56 +00:00
</head>
<body class="iframe-body">
2009-12-01 07:10:56 +00:00
2015-01-25 09:18:40 +00:00
<c:set var="statusUrl" value="network.jsp"/>
<c:choose>
<c:when test="${connStatus == NOT_STARTED}">
<c:set var="statusIcon" value="not_started"/>
2015-02-03 04:55:02 +00:00
<ib:message key="Not Started" var="statusMessage"/>
2015-01-25 09:18:40 +00:00
</c:when>
<c:when test="${connStatus == DELAY}">
<c:set var="statusIcon" value="delay"/>
2015-02-03 04:55:02 +00:00
<ib:message key="Waiting 3 Minutes..." var="statusMessage"/>
2015-01-25 09:18:40 +00:00
</c:when>
<c:when test="${connStatus == CONNECTING}">
<c:set var="statusIcon" value="connecting"/>
2015-02-03 04:55:02 +00:00
<ib:message key="Connecting..." var="statusMessage"/>
2015-01-25 09:18:40 +00:00
</c:when>
<c:when test="${connStatus == CONNECTED}">
<c:set var="statusIcon" value="connected"/>
2015-02-03 04:55:02 +00:00
<ib:message key="Connected" var="statusMessage"/>
2015-01-25 09:18:40 +00:00
</c:when>
<c:when test="${connStatus == ERROR}">
<c:set var="statusIcon" value="connect_error"/>
2015-02-03 04:55:02 +00:00
<ib:message key="Error" var="statusMessage"/>
2015-01-25 09:18:40 +00:00
<c:set var="statusUrl" value="connectError.jsp"/>
</c:when>
<c:otherwise>
<c:set var="statusMessageKey" value="Unknown Status"/>
</c:otherwise>
</c:choose>
2009-12-01 07:10:56 +00:00
<div class="statusbox">
<a class="menuitem${param.selected == 'network' ? ' selected' : '' }" href="${statusUrl}" target="_parent">
2015-01-25 09:18:40 +00:00
<div class="menu-icon"><img src="${themeDir}/images/${statusIcon}.png"/></div>
2015-02-03 04:55:02 +00:00
<div class="menu-text">${statusMessage}</div>
<c:if test="${connStatus == DELAY or connStatus == ERROR}">
<%-- Show the connect button --%>
<div class="status-frame-connect">
<%-- When the connect button is clicked, refresh the entire page so the buttons in buttonFrame.jsp are enabled --%>
<csrf:form action="connect.jsp" target="_top" method="POST">
<button type="submit">
<c:if test="${connStatus eq ERROR}">
<ib:message key="Retry Connecting"/>
</c:if>
<c:if test="${connStatus ne ERROR}">
<ib:message key="Connect Now"/>
</c:if>
</button>
</csrf:form>
</div>
</c:if>
2015-01-25 09:18:40 +00:00
</a>
2009-12-01 07:10:56 +00:00
</div>
</body>
</html>