[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [atlas/master] Make exitpolicies scroll



commit 3234789e8170ae3f7d27c7463cdf84b9424b33e1
Author: Sathyanarayanan Gunasekaran <gsathya.ceg@xxxxxxxxx>
Date:   Sat Sep 15 08:31:37 2012 +0530

    Make exitpolicies scroll
---
 css/bootstrap.css           |    6 ++++++
 templates/details/main.html |    6 +++---
 2 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/css/bootstrap.css b/css/bootstrap.css
index 250ee39..e60bb20 100644
--- a/css/bootstrap.css
+++ b/css/bootstrap.css
@@ -492,6 +492,12 @@ pre {
 pre.prettyprint {
   margin-bottom: 18px;
 }
+
+pre.pre-scrollable {
+ max-height: 340px;
+ overflow-y: scroll;
+}
+
 pre code {
   padding: 0;
   background-color: transparent;
diff --git a/templates/details/main.html b/templates/details/main.html
index 088b6b8..b8b5421 100644
--- a/templates/details/main.html
+++ b/templates/details/main.html
@@ -33,15 +33,15 @@
       <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>
       <% if ('accept' in relay.get('exit_policy_summary')) { %>
-        <pre>accept<% _.each(relay.get('exit_policy_summary')['accept'],
+        <pre class="pre-scrollable">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'],
+        <pre class="pre-scrollable">reject<% _.each(relay.get('exit_policy_summary')['reject'],
           function(ports) { %><br>  <%= $.trim(ports) %><% });} %></pre>
       </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>
       <dd>
-      <pre><% _.each(relay.get('exit_policy'), function(line) { %>
+      <pre class="pre-scrollable"><% _.each(relay.get('exit_policy'), function(line) { %>
 <%= $.trim(line) %><% }); %></pre>
       </dd>
     </dl>

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits