commit bc255c85113f1559e27d636c120a8f603988a8d9 Author: Karsten Loesing karsten.loesing@gmx.net Date: Tue Oct 24 16:51:57 2017 +0200
Add missing servlet and JSP for new Services page. --- .../torproject/metrics/web/ServicesServlet.java | 30 +++++++++++++ .../src/main/resources/web/WEB-INF/services.jsp | 51 ++++++++++++++++++++++ 2 files changed, 81 insertions(+)
diff --git a/website/src/main/java/org/torproject/metrics/web/ServicesServlet.java b/website/src/main/java/org/torproject/metrics/web/ServicesServlet.java new file mode 100644 index 0000000..c96f22c --- /dev/null +++ b/website/src/main/java/org/torproject/metrics/web/ServicesServlet.java @@ -0,0 +1,30 @@ +/* Copyright 2017 The Tor Project + * See LICENSE for licensing information */ + +package org.torproject.metrics.web; + +import java.io.IOException; + +import javax.servlet.ServletException; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; + +public class ServicesServlet extends AnyServlet { + + private static final long serialVersionUID = 516625494518844400L; + + @Override + public void init() throws ServletException { + super.init(); + } + + @Override + public void doGet(HttpServletRequest request, + HttpServletResponse response) throws IOException, ServletException { + + request.setAttribute("categories", this.categories); + request.getRequestDispatcher("WEB-INF/services.jsp").forward(request, + response); + } +} + diff --git a/website/src/main/resources/web/WEB-INF/services.jsp b/website/src/main/resources/web/WEB-INF/services.jsp new file mode 100644 index 0000000..5eac330 --- /dev/null +++ b/website/src/main/resources/web/WEB-INF/services.jsp @@ -0,0 +1,51 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> +<jsp:include page="top.jsp"> + <jsp:param name="pageTitle" value="Services – Tor Metrics"/> + <jsp:param name="navActive" value="Services"/> +</jsp:include> + + <div class="container"> + <ul class="breadcrumb"> + <li><a href="/">Home</a></li> + <li class="active">Services</li> + </ul> + </div> + + <div class="container"> + <h1>Services <a href="#services" name="services" class="anchor">#</a></h1> + <p>You're running a Tor relay or bridge, or you're affected in some way by somebody else running one? With the following services you can learn everything about currently running Tor nodes or even about nodes that have been running in the past.</p> + </div> + + <div class="container"> + <h2>Network archive <a href="#archive" name="archive" class="anchor">#</a></h2> + <p>The following tool lets you browse the network archive for relays running in the past.</p> + <ul> + <li><a href="https://exonerator.torproject.org/" target="_blank">ExoneraTor</a> tells you if an IP was used by a Tor relay on a given date.</li> + </ul> + </div> + + <div class="container"> + <h2>Network status <a href="#status" name="status" class="anchor">#</a></h2> + <p>The following tools let you explore currently running relays and bridges.</p> + <ul> + <li><a href="https://atlas.torproject.org/" target="_blank">Atlas</a> displays data about single relays and bridges in the Tor network.</li> + <li><a href="https://compass.torproject.org/" target="_blank">Compass</a> groups current relays in different ways to measure Tor's network diversity.</li> + <li><a href="https://consensus-health.torproject.org/" target="_blank">Consensus Health</a> displays information about the current directory consensus and votes.</li> + <li><a href="https://duckduckgo.com/" target="_blank">DuckDuckGo</a> displays Tor node details when including the keywords "tor node" in a search.</li> + <li><a href="https://onionview.codeplex.com/" target="_blank">OnionView</a> plots the location of active Tor nodes on an interactive map of the world.</li> + <li><a href="https://onionite.now.sh/" target="_blank">Onionite</a> is a Progressive Web App to view information on the individual nodes that make up the Tor network.</li> + </ul> + </div> + + <div class="container"> + <h2>Network health notifications <a href="#health" name="health" class="anchor">#</a></h2> + <p>The following tools inform you of any problems with relays and bridges.</p> + <ul> + <li><a href="https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-consensus-health" target="_blank">Consensus Issues</a> emails directory authority operators about consensus problems.</li> + <li><a href="http://lists.infolabe.net/lists/listinfo/infolabe-anomalies" target="_blank">OII's anomaly detection system</a> ranks countries by how anomalous their Tor usage is.</li> + </ul> + </div> + +<jsp:include page="bottom.jsp"/> +