source: apps/routerconsole/jsp/home.jsp @ 06a599b

Last change on this file since 06a599b was 06a599b, checked in by zzz <zzz@…>, 4 years ago

Add Galician language

Flag converted from:
https://en.wikipedia.org/wiki/File:Flag_of_Galicia.svg
Public Domain

  • Property mode set to 100644
File size: 8.6 KB
Line 
1<%@page contentType="text/html"%>
2<%@page pageEncoding="UTF-8"%>
3<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
4<html><head>
5<%@include file="css.jsi" %>
6<%=intl.title("home")%>
7<script src="/js/ajax.js" type="text/javascript"></script>
8<%@include file="summaryajax.jsi" %>
9</head><body onload="initAjax()">
10<%
11    String consoleNonce = net.i2p.router.web.CSSHelper.getNonce();
12%>
13<jsp:useBean class="net.i2p.router.web.NewsHelper" id="newshelper" scope="request" />
14<jsp:setProperty name="newshelper" property="contextId" value="<%=(String)session.getAttribute(\"i2p.contextId\")%>" />
15<%
16    java.io.File fpath = new java.io.File(net.i2p.I2PAppContext.getGlobalContext().getRouterDir(), "docs/news.xml");
17%>
18 <jsp:setProperty name="newshelper" property="page" value="<%=fpath.getAbsolutePath()%>" />
19 <jsp:setProperty name="newshelper" property="maxLines" value="300" />
20 <jsp:useBean class="net.i2p.router.web.ConfigUpdateHelper" id="updatehelper" scope="request" />
21 <jsp:setProperty name="updatehelper" property="contextId" value="<%=(String)session.getAttribute(\"i2p.contextId\")%>" />
22
23<div class="routersummaryouter">
24 <div class="routersummary">
25  <div style="height: 36px;">
26   <a href="/console"><img src="<%=intl.getTheme(request.getHeader("User-Agent"))%>images/i2plogo.png" alt="<%=intl._t("I2P Router Console")%>" title="<%=intl._t("I2P Router Console")%>"></a>
27  </div>
28<%
29    if (!intl.allowIFrame(request.getHeader("User-Agent"))) {
30%>
31  <a href="/summaryframe"><%=intl._t("Summary Bar")%></a>
32<%
33    }
34%>
35  <div id="xhr">
36<!-- for non-script -->
37<%@include file="xhr1.jsi" %>
38  </div>
39 </div>
40</div>
41
42<h1><%=intl._t("I2P Router Console")%></h1>
43
44<%
45   if (newshelper.shouldShowNews()) {
46%>
47<div class="news" id="news">
48 <jsp:getProperty name="newshelper" property="content" />
49 <hr>
50 <jsp:getProperty name="updatehelper" property="newsStatus" /><br>
51</div>
52<%
53   }  // shouldShowNews()
54%>
55
56<div class="main" id="main">
57<jsp:useBean class="net.i2p.router.web.HomeHelper" id="homehelper" scope="request" />
58<jsp:setProperty name="homehelper" property="contextId" value="<%=(String)session.getAttribute(\"i2p.contextId\")%>" />
59<% if (homehelper.shouldShowWelcome()) { %>
60<div class="welcome" title="<%=intl._t("Click a flag to select a language. Click 'configure language' below to change it later.")%>">
61  <div class="langbox" id="langbox">
62    <a href="/home?lang=en&amp;consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=us" title="English" alt="English"></a>
63    <a href="/home?lang=ar&amp;consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=lang_ar" title="عربية" alt="عربية"></a>
64    <a href="/home?lang=zh&amp;consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=cn" title="中文" alt="中文"></a>
65    <a href="/home?lang=cs&amp;consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=cz" title="Česky" alt="Česky"></a>
66    <a href="/home?lang=da&amp;consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=dk" title="Dansk" alt="Dansk"></a>
67    <a href="/home?lang=de&amp;consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=de" title="Deutsch" alt="Deutsch"></a>
68    <a href="/home?lang=et&amp;consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=ee" title="Eesti" alt="Eesti"></a>
69    <a href="/home?lang=es&amp;consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=es" title="Español" alt="Español"></a>
70    <a href="/home?lang=fi&amp;consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=fi" title="Suomi" alt="Suomi"></a>
71    <a href="/home?lang=fr&amp;consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=fr" title="Français" alt="Français"></a>
72    <a href="/home?lang=gl&amp;consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=lang_gl" title="Galician" alt=Galician"></a>
73    <a href="/home?lang=el&amp;consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=gr" title="ελληνικά" alt="ελληνικά"></a>
74    <a href="/home?lang=hu&amp;consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=hu" title="Magyar" alt="Magyar"></a>
75    <a href="/home?lang=it&amp;consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=it" title="Italiano" alt="Italiano"></a>
76    <a href="/home?lang=ja&amp;consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=jp" title="日本語" alt="日本語"></a><br>
77    <a href="/home?lang=mg&amp;consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=mg" title="Malagasy" alt="Malagasy"></a>
78    <a href="/home?lang=nb&amp;consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=no" title="Bokmål" alt="Norwegian Bokmaal"></a>
79    <a href="/home?lang=nl&amp;consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=nl" title="Nederlands" alt="Nederlands"></a>
80    <a href="/home?lang=pl&amp;consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=pl" title="Polski" alt="Polski"></a>
81    <a href="/home?lang=pt&amp;consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=pt" title="Português" alt="Português"></a>
82    <a href="/home?lang=pt_BR&amp;consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=br" title="Português brasileiro" alt="Português brasileiro"></a>
83    <a href="/home?lang=ro&amp;consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=ro" title="Română" alt="Română"></a>
84    <a href="/home?lang=ru&amp;consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=ru" title="Русский" alt="Русский"></a>
85    <a href="/home?lang=sk&amp;consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=sk" title="Slovenčina" alt="Slovenčina"></a>
86    <a href="/home?lang=sv&amp;consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=se" title="Svenska" alt="Svenska"></a>
87    <a href="/home?lang=tr&amp;consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=tr" title="Türkçe" alt="Türkçe"></a>
88    <a href="/home?lang=zh_TW&amp;consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=tw" title="Chinese (Taiwan)" alt="Chinese (Taiwan)"></a>
89    <a href="/home?lang=uk&amp;consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=ua" title="Українська" alt="Українська"></a>
90    <a href="/home?lang=vi&amp;consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=vn" title="Tiếng Việt" alt="Tiếng Việt"></a>
91  </div>
92  <h2><%=intl._t("Welcome to I2P")%></h2>
93</div>
94<% }  // shouldShowWelcome %>
95
96<div class="home" id="home">
97<%
98   if (homehelper.shouldShowSearch()) {
99%>
100  <div class="search">
101    <form action="/search.jsp" method="POST">
102      <table class="search"><tr><td align="right">
103        <input size="40" type="text" class="search" name="query" />
104      </td><td align="left">
105        <button type="submit" value="search" class="search"><%=intl._t("Search I2P")%></button>
106      </td><td align="left">
107        <jsp:useBean class="net.i2p.router.web.SearchHelper" id="searchhelper" scope="request" />
108        <jsp:setProperty name="searchhelper" property="contextId" value="<%=(String)session.getAttribute(\"i2p.contextId\")%>" />
109        <jsp:getProperty name="searchhelper" property="selector" />
110      </td></tr></table>
111    </form>
112  </div>
113<%
114   }  // shouldShowSearch()
115%>
116  <div class="ag2">
117    <h4 class="app"><%=intl._t("Hidden Services of Interest")%></h4>
118    <jsp:getProperty name="homehelper" property="favorites" /><br>
119  </div>
120  <div class="ag2">
121    <h4 class="app2"><%=intl._t("Applications and Configuration")%></h4>
122    <jsp:getProperty name="homehelper" property="services" /><br>
123    <div class="clearer">&nbsp;</div>
124  </div>
125</div>
126</div>
127</body></html>
Note: See TracBrowser for help on using the repository browser.