home.html 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. {% extends "base.html" %}
  2. {% block content %}
  3. <h2>What is this?</h2>
  4. <p>This tool allows you to find "good" peerings for dn42, by measuring the
  5. latency from various points in the network towards you.</p>
  6. <h2>How does it work?</h2>
  7. <p>
  8. <ol>
  9. <li>you enter your (Internet) IP address or hostname</li>
  10. <li>various routers participating in dn42 will ping you over the Internet</li>
  11. <li>after a short while, you get back all the latency results</li>
  12. <li>you can then peer with people close to you (low latency)</li>
  13. </ol>
  14. </p>
  15. <h3>Launch a measurement</h3>
  16. <p>
  17. <form action="/submit" method="POST">
  18. <label for="target">Target:</label>
  19. <input type="text" name="target" id="target" value="{{ request.remote_addr|ipaddress_pp }}"/><br />
  20. <input type="checkbox" id="public" name="public" />
  21. <label for="public">Public?</label><br />
  22. <input type="submit" value="Launch" />
  23. </form>
  24. </p>
  25. <p>If you mark your measurement as public, it will be displayed on the
  26. home page below. Note that the IP addresses of the target will be shown
  27. alongside the result.</p>
  28. <h2>Recent measurements</h2>
  29. <table>
  30. <tr>
  31. <th>Date</th>
  32. <th>Target</th>
  33. <th>Result</th>
  34. </tr>
  35. {% for t in targets %}
  36. <tr>
  37. <td>{{ t.submitted.strftime('%Y-%m-%d %H:%M') }}</td>
  38. <td>{{ t.get_ip() }}</td>
  39. <td><a href="/result/show/{{ t.unique_id }}">View result</a></td>
  40. </tr>
  41. {% endfor %}
  42. </table>
  43. {% endblock %}