Ticket #21364: 0001-Do-not-show-flag-labels-in-tooltips-on-relay-pages.patch

File 0001-Do-not-show-flag-labels-in-tooltips-on-relay-pages.patch, 1.7 KB (added by cypherpunks, 3 years ago)
  • templates/details/bridge.html

    From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
    From: cypherpunks <cypherpunks@torproject.org>
    Date: Wed, 1 Feb 2017 12:23:00 +0000
    Subject: [PATCH] Do not show flag labels in tooltips on relay pages
    
    The same labels are already next the flag icons.
    
    Closes #21364.
    ---
     templates/details/bridge.html | 2 +-
     templates/details/router.html | 2 +-
     2 files changed, 2 insertions(+), 2 deletions(-)
    
    diff --git a/templates/details/bridge.html b/templates/details/bridge.html
    index d06cd21..c436522 100644
    a b  
    4444
    4545    <dt><span class="tip" title="Flags that the directory authorities assigned to this bridge." data-original-title="Bridge flags">Flags</span></dt>
    4646    <dd><% _.each(relay.get('flags'), function(flag) { %>
    47     <span class="flags" title="<%= flag[0] %><br /><%= flag[2] %>">
     47    <span class="flags" title="<%= flag[2] %>">
    4848        <img class="inline" alt="" src="img/flags/<%= flag[1] %>.png"/>
    4949        <span class="inline"><%= flag[0] %></span>
    5050    </span>
  • templates/details/router.html

    diff --git a/templates/details/router.html b/templates/details/router.html
    index d3f80ed..208f31a 100644
    a b  
    7676
    7777    <dt><span class="tip" title="Flags that the directory authorities assigned to this relay." data-original-title="Relay flags">Flags</span></dt>
    7878    <dd><% _.each(relay.get('flags'), function(flag) { %>
    79         <span class="flags" title="<%= flag[0] %><br /><%= flag[2] %>">
     79        <span class="flags" title="<%= flag[2] %>">
    8080            <img class="inline" alt="" src="img/flags/<%= flag[1] %>.png"/>
    8181            <span class="inline"><%= flag[0] %></span>
    8282        </span>