Display total count in fingerprint column
[compass/delber.git] / templates / result.html
bloba572933e8e1759a13feeb390a27e9d656b3c1d43
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 Number</th>
67 <th>Autonomous System Name</th>
68 </tr>
69 </thead>
70 <tbody>
71 {% for result in results %}
72 <tr>
73 <td>{{ loop.index }}</td>
74 <td>{{ result.cw }}</td>
75 <td>{{ result.adv_bw }}</td>
76 <td>{{ result.p_guard }}</td>
77 <td>{{ result.p_middle }}</td>
78 <td>{{ result.p_exit }}</td>
79 <td>{{ result.nick }}</td>
80 <!-- this happens when we do groupings-->
81 {% if "relays" in result.fp %}
82 <td>{{ result.fp }}</td>
83 {% else %}
84 <td><a href="https://atlas.torproject.org/#details/{{
85 result.fp }}">{{ result.fp[:8] }}</a></td>
86 {% endif %}
87 <td>{{ result.exit }}</td>
88 <td>{{ result.guard }}</td>
89 <td>{{ result.cc }}</td>
90 <td>{{ result.as_no }}</td>
91 <td>{{ result.as_name }}</td>
92 </tr>
93 {% endfor %}
94 </tbody>
95 </table>
96 <p><a class="btn btn-primary btn-large" href="{{
97 url_for('index') }}">Back &laquo;</a></p>
98 </div>
100 <hr>
102 <footer>
103 The Tor Project - 2012<br>
104 <a href="https://gitweb.torproject.org/compass.git">Source code</a> -
105 <a href="https://trac.torproject.org/projects/tor/newticket?component=Compass">Report a bug</a> -
106 <a href="mailto:tor-assistants@lists.torproject.org">Contact</a>
107 </footer>
109 </div> <!-- /container -->
111 <!-- Le javascript
112 ================================================== -->
113 <!-- Placed at the end of the document so the pages load faster -->
115 <script src="{{ url_for('static', filename='js/jquery-1.8.0.min.js') }}"></script>
116 <script src="{{ url_for('static', filename='js/bootstrap.min.js') }}"></script>
117 <script src="{{ url_for('static', filename='js/custom.js') }}"></script>
118 <script src="{{ url_for('static', filename='js/bootstrap-tooltip.js') }}"></script>
120 <script>
121 $(document).ready(function() {
122 addListener();
123 $('span[rel=tooltip]').tooltip();
125 </script>
126 <!--
127 <script src="{{ url_for('static', filename='js/bootstrap-transition.js') }}"></script>
128 <script src="{{ url_for('static', filename='js/bootstrap-alert.js') }}"></script>
129 <script src="{{ url_for('static', filename='js/bootstrap-modal.js') }}"></script>
130 <script src="{{ url_for('static', filename='js/bootstrap-dropdown.js') }}"></script>
131 <script src="{{ url_for('static', filename='js/bootstrap-scrollspy.js') }}"></script>
132 <script src="{{ url_for('static', filename='js/bootstrap-tab.js') }}"></script>
133 <script src="{{ url_for('static', filename='js/bootstrap-popover.js') }}"></script>
134 <script src="{{ url_for('static', filename='js/bootstrap-button.js') }}"></script>
135 <script src="{{ url_for('static', filename='js/bootstrap-collapse.js') }}"></script>
136 <script src="{{ url_for('static', filename='js/bootstrap-carousel.js') }}"></script>
137 <script src="{{ url_for('static', filename='js/bootstrap-typeahead.js') }}"></script>
139 </body>
140 </html>