Ticket #22147: 0002-Reorder-fields-to-group-similar-styling-together.patch

File 0002-Reorder-fields-to-group-similar-styling-together.patch, 4.4 KB (added by cypherpunks, 4 years ago)
  • templates/details/bridge.html

    From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
    From: cypherpunks <cypherpunks@torproject.org>
    Date: Thu, 18 May 2017 09:51:18 +0000
    Subject: [PATCH 2/2] Reorder fields to group similar styling together
    
    ---
     templates/details/bridge.html |  6 +++---
     templates/details/router.html | 13 ++++++-------
     2 files changed, 9 insertions(+), 10 deletions(-)
    
    diff --git a/templates/details/bridge.html b/templates/details/bridge.html
    index 1bd1458..7e44c24 100644
    a b  
    1717      <dt><span class="tip" title="This is the nickname that the Tor bridge operator chose.">Nickname</span></dt>
    1818      <dd><%= _.escape(relay.get('nickname')) %></dd>
    1919
    20       <dt><span class="tip" title="Ports (addresses are hidden) where the bridge listens for incoming connections from clients and other relays.">OR Addresses</span></dt>
    21       <dd><pre class="pre-scrollable"><% _.each(relay.get('or_addresses'), function(or_address) { %><%= or_address %><br><% }); %></pre></dd>
    22 
    2320      <dt>
    2421      <span class="tip" title="Bandwidth that the bridge is willing and able to provide in bytes per second.">Advertised Bandwidth</span>
    2522      </dt>
    2623      <dd><%= relay.get('bandwidth_hr') ? relay.get('bandwidth_hr') : 'not defined' %></dd>
     24
     25      <dt><span class="tip" title="Ports (addresses are hidden) where the bridge listens for incoming connections from clients and other relays.">OR Addresses</span></dt>
     26      <dd><pre class="pre-scrollable"><% _.each(relay.get('or_addresses'), function(or_address) { %><%= or_address %><br><% }); %></pre></dd>
    2727    </dl>
    2828
    2929
  • templates/details/router.html

    diff --git a/templates/details/router.html b/templates/details/router.html
    index 23fad7f..127bb5b 100644
    a b  
    1717      <dt><span class="tip" title="This is the nickname that the Tor relay operator chose.">Nickname</span></dt>
    1818      <dd><%= _.escape(relay.get('nickname')) %></dd>
    1919
    20       <dt><span class="tip" title="Addresses and ports where the relay listens for incoming connections from clients and other relays.">OR Addresses</span></dt>
    21       <dd><pre class="pre-scrollable"><% _.each(relay.get('or_addresses'), function(or_address) { %><%= or_address %><br><% }); %></pre></dd>
    22 
    2320      <dt><span class="tip" title="These are the contact details of the Tor relay operator">Contact</span></dt>
    2421      <dd><%= _.escape( relay.get('contact')!='undefined' ? relay.get('contact') : 'none' ) %></dd>
    2522
     23      <dt><span class="tip" title="Bandwidth that the relay is willing and able to provide in bytes per second.">Advertised Bandwidth</span></dt>
     24      <dd><span class="tip" title="Bandwidth rate: <%= relay.get('bandwidthr') %><br>Bandwidth burst: <%= relay.get('bandwidthb') %><br>Observed bandwidth: <%= relay.get('obandwidth') %>"><%= relay.get('bandwidth_hr') %></span></dd>
     25
     26      <dt><span class="tip" title="Addresses and ports where the relay listens for incoming connections from clients and other relays.">OR Addresses</span></dt>
     27      <dd><pre class="pre-scrollable"><% _.each(relay.get('or_addresses'), function(or_address) { %><%= or_address %><br><% }); %></pre></dd>
     28
    2629      <dt><span class="tip" title="Address and port where the relay listens for directory requests.">Dir Address</span></dt>
    2730      <dd><pre><%= relay.get('dir_address') ? relay.get('dir_address') : 'none' %></pre></dd>
    2831
    2932      <dt><span class="tip" title="Addresses that the relay used to exit to the Internet in the past 24 hours. <em>Only lists addresses that are different from the OR addresses.</em>">Exit Addresses</span></dt>
    3033      <dd><pre class="pre-scrollable"><% if (relay.get('exit_addresses') !== null) { %><% _.each(relay.get('exit_addresses'), function(exit_address) { %><%= exit_address %><br><% }); %><% } else { %>none<% } %></pre></dd>
    3134
    32       <dt>
    33       <span class="tip" title="Bandwidth that the relay is willing and able to provide in bytes per second.">Advertised Bandwidth</span>
    34       </dt>
    35       <dd><span class="tip" title="Bandwidth rate: <%= relay.get('bandwidthr') %><br>Bandwidth burst: <%= relay.get('bandwidthb') %><br>Observed bandwidth: <%= relay.get('obandwidth') %>"><%= relay.get('bandwidth_hr') %></span></dd>
    3635      <dt><span class="tip" title="Port summary of IPv4 exit connections that the relay is going to accept or reject.">IPv4 Exit Policy Summary</span></dt>
    3736      <dd>
    3837      <% if ('accept' in relay.get('exit_policy_summary')) { %>