[tor-commits] [metrics-web/master] Add direct links to CSV files.

karsten at torproject.org karsten at torproject.org
Mon Jan 9 17:03:42 UTC 2017


commit d891d46ca5f3940b67ac96c91d27ca2da9f412d0
Author: Karsten Loesing <karsten.loesing at gmx.net>
Date:   Fri Jan 6 09:54:43 2017 +0100

    Add direct links to CSV files.
---
 website/web/WEB-INF/graph.jsp | 5 ++---
 website/web/WEB-INF/link.jsp  | 6 ++----
 website/web/WEB-INF/table.jsp | 6 ++----
 3 files changed, 6 insertions(+), 11 deletions(-)

diff --git a/website/web/WEB-INF/graph.jsp b/website/web/WEB-INF/graph.jsp
index 3de60ac..d6ec70c 100644
--- a/website/web/WEB-INF/graph.jsp
+++ b/website/web/WEB-INF/graph.jsp
@@ -146,13 +146,12 @@
 <p>Download graph as
 <a href="${id}.pdf${parameters}">PDF</a> or
 <a href="${id}.svg${parameters}">SVG</a>.</p>
-<br>
 
 <c:if test="${fn:length(data) > 0}">
-<h4>Underlying data</h4>
+<p>Download underlying data:</p>
 <ul>
 <c:forEach var="row" items="${data}">
-<li><a href="stats.html#${row}"><code>stats/${row}.csv</code></a></li>
+<li><a href="stats/${row}.csv">CSV</a> (<a href="stats.html#${row}">format</a>)</li>
 </c:forEach>
 </ul>
 </c:if>
diff --git a/website/web/WEB-INF/link.jsp b/website/web/WEB-INF/link.jsp
index c017c03..8d307b4 100644
--- a/website/web/WEB-INF/link.jsp
+++ b/website/web/WEB-INF/link.jsp
@@ -36,13 +36,11 @@
             </div>
             <div class="col-md-4">
 
-              <p>
-
               <c:if test="${fn:length(data) > 0}">
-              <h4>Underlying data</h4>
+              <p>Underlying data</p>
               <ul>
               <c:forEach var="row" items="${data}">
-              <li><a href="stats.html#${row}"><code>stats/${row}.csv</code></a></li>
+              <li><a href="stats/${row}.csv">CSV</a> (<a href="stats.html#${row}">format</a>)</li>
               </c:forEach>
               </ul>
               </c:if>
diff --git a/website/web/WEB-INF/table.jsp b/website/web/WEB-INF/table.jsp
index 07b3cc7..a8e4dd5 100644
--- a/website/web/WEB-INF/table.jsp
+++ b/website/web/WEB-INF/table.jsp
@@ -64,13 +64,11 @@
     </p>
 </form>
 
-<p>
-
 <c:if test="${fn:length(data) > 0}">
-<h4>Underlying data</h4>
+<p>Download underlying data:</p>
 <ul>
 <c:forEach var="row" items="${data}">
-<li><a href="stats.html#${row}"><code>stats/${row}.csv</code></a></li>
+<li><a href="stats/${row}.csv">CSV</a> (<a href="stats.html#${row}">format</a>)</li>
 </c:forEach>
 </ul>
 </c:if>





More information about the tor-commits mailing list