Merge AS_Number and AS_Name
[compass/delber.git] / templates / result.html
blob28d4f213bff3a43320b470d7e3174a647f2eba95
2 <!DOCTYPE html>
3 <html lang="en">
4 <head>
5 <meta charset="utf-8">
6 <title>Tor Metrics</title>
7 <meta name="viewport" content="width=device-width, initial-scale=1.0">
8 <meta name="description" content="Tor relay stats">
9 <meta name="author" content="Sathyanarayanan Gunasekaran">
11 <!-- Le styles -->
12 <link href="{{ url_for('static', filename='css/bootstrap.css') }}" rel="stylesheet">
13 <style type="text/css">
14 body {
15 padding-top: 60px;
16 padding-bottom: 40px;
18 </style>
20 <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
21 <!--[if lt IE 9]>
22 <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
23 <![endif]-->
24 </head>
26 <body>
28 <div class="navbar navbar-fixed-top">
29 <div class="navbar-inner">
30 <div class="container">
31 <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
32 <span class="icon-bar"></span>
33 <span class="icon-bar"></span>
34 <span class="icon-bar"></span>
35 </a>
36 <a class="brand" href="{{
37 url_for('index') }}">Tor Metrics</a>
38 <div class="nav-collapse">
39 <ul class="nav">
40 <li class="active"><a href="{{
41 url_for('index') }}">Home</a></li>
42 <li><a href="https://trac.torproject.org/projects/tor/ticket/6498">Trac
43 Ticket #6498</a></li>
44 </ul>
45 </div><!--/.nav-collapse -->
46 </div>
47 </div>
48 </div>
50 <div class="container">
51 <div class="hero-unit">
52 <table class="table table-striped table-condensed table-hover table-bordered">
53 <thead>
54 <tr>
55 <th>#</th>
56 <th><span rel="tooltip" title="Relative bandwidth weight assigned to this relay by the directory authorities">Consensus Weights</span></th>
57 <th><span rel="tooltip" title="Relative advertised bandwidth of this relay compared to the total advertised bandwidth in the network">Advertised Bandwidth</span></th>
58 <th><span rel="tooltip" title=" Probability of this relay to be selected for the guard position">Guard Probability</span></th>
59 <th><span rel="tooltip" title="Probability of this relay to be selected for the middle position">Middle Probability</span></th>
60 <th><span rel="tooltip" title="Probability of this relay to be selected for the exit position">Exit Probability</span></th>
61 <th>Nickname</th>
62 <th>Fingerprint</th>
63 <th>Exit</th>
64 <th>Guard</th>
65 <th>Country</th>
66 <th>Autonomous System</th>
67 </tr>
68 </thead>
69 <tbody>
70 {% for result in results %}
71 <tr>
72 <td>{{ loop.index }}</td>
73 <td>{{ result.cw }}</td>
74 <td>{{ result.adv_bw }}</td>
75 <td>{{ result.p_guard }}</td>
76 <td>{{ result.p_middle }}</td>
77 <td>{{ result.p_exit }}</td>
78 <td>{{ result.nick }}</td>
79 <!-- this happens when we do groupings-->
80 {% if "relays" in result.fp %}
81 <td>{{ result.fp }}</td>
82 {% else %}
83 <td><a href="https://atlas.torproject.org/#details/{{
84 result.fp }}">{{ result.fp[:8] }}</a></td>
85 {% endif %}
86 <td>{{ result.exit }}</td>
87 <td>{{ result.guard }}</td>
88 <td>{{ result.cc }}</td>
89 <td>{{ result.as_info }}</td>
90 </tr>
91 {% endfor %}
92 </tbody>
93 </table>
94 <p><a class="btn btn-primary btn-large" href="{{
95 url_for('index') }}">Back &laquo;</a></p>
96 </div>
98 <hr>
100 <footer>
101 The Tor Project - 2012<br>
102 <a href="https://gitweb.torproject.org/compass.git">Source code</a> -
103 <a href="https://trac.torproject.org/projects/tor/newticket?component=Compass">Report a bug</a> -
104 <a href="mailto:tor-assistants@lists.torproject.org">Contact</a>
105 </footer>
107 </div> <!-- /container -->
109 <!-- Le javascript
110 ================================================== -->
111 <!-- Placed at the end of the document so the pages load faster -->
113 <script src="{{ url_for('static', filename='js/jquery-1.8.0.min.js') }}"></script>
114 <script src="{{ url_for('static', filename='js/bootstrap.min.js') }}"></script>
115 <script src="{{ url_for('static', filename='js/custom.js') }}"></script>
116 <script src="{{ url_for('static', filename='js/bootstrap-tooltip.js') }}"></script>
118 <script>
119 $(document).ready(function() {
120 addListener();
121 $('span[rel=tooltip]').tooltip();
123 </script>
124 <!--
125 <script src="{{ url_for('static', filename='js/bootstrap-transition.js') }}"></script>
126 <script src="{{ url_for('static', filename='js/bootstrap-alert.js') }}"></script>
127 <script src="{{ url_for('static', filename='js/bootstrap-modal.js') }}"></script>
128 <script src="{{ url_for('static', filename='js/bootstrap-dropdown.js') }}"></script>
129 <script src="{{ url_for('static', filename='js/bootstrap-scrollspy.js') }}"></script>
130 <script src="{{ url_for('static', filename='js/bootstrap-tab.js') }}"></script>
131 <script src="{{ url_for('static', filename='js/bootstrap-popover.js') }}"></script>
132 <script src="{{ url_for('static', filename='js/bootstrap-button.js') }}"></script>
133 <script src="{{ url_for('static', filename='js/bootstrap-collapse.js') }}"></script>
134 <script src="{{ url_for('static', filename='js/bootstrap-carousel.js') }}"></script>
135 <script src="{{ url_for('static', filename='js/bootstrap-typeahead.js') }}"></script>
137 </body>
138 </html>