[tor-commits] [atlas/master] Replace full exit policy with exit policy summary.
karsten at torproject.org
karsten at torproject.org
Thu Sep 13 18:22:11 UTC 2012
commit a6513c8ee4fa8b293264d833f98e99d8e69357fe
Author: Karsten Loesing <karsten.loesing at gmx.net>
Date: Thu Sep 13 14:18:06 2012 -0400
Replace full exit policy with exit policy summary.
Implements #6711.
---
templates/details/main.html | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/templates/details/main.html b/templates/details/main.html
index d224183..673e36b 100644
--- a/templates/details/main.html
+++ b/templates/details/main.html
@@ -30,10 +30,14 @@
<span class="tip" data-content="Bandwidth that the relay is willing and capable to provide." data-original-title="Advertised bandwidth">Advertised Bandwidth</span>
</dt>
<dd><%= relay.get('bandwidth_hr') %></dd>
- <dt><span class="tip" data-content="Policy of exit connections that the relay is going to accept or reject." data-original-title="Exit policy">Exit Policy</span></dt>
+ <dt><span class="tip" data-content="Port summary of exit connections that the relay is going to accept or reject." data-original-title="Exit policy summary">Exit Policy Summary</span></dt>
<dd>
- <pre><% _.each(relay.get('exit_policy'), function(line) { %>
-<%= $.trim(line) %><% }); %></pre>
+ <% if ('accept' in relay.get('exit_policy_summary')) { %>
+ <pre>accept<% _.each(relay.get('exit_policy_summary')['accept'],
+ function(ports) { %><br> <%= $.trim(ports) %><% });} %></pre>
+ <% if ('reject' in relay.get('exit_policy_summary')) { %>
+ <pre>reject<% _.each(relay.get('exit_policy_summary')['reject'],
+ function(ports) { %><br> <%= $.trim(ports) %><% });} %></pre>
</dd>
</dl>
More information about the tor-commits
mailing list