Ticket #22416: 0001-Replace-the-relay-status-icons-with-CSS.patch

File 0001-Replace-the-relay-status-icons-with-CSS.patch, 4.5 KB (added by cypherpunks, 2 years ago)
  • css/style.css

    From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
    From: cypherpunks <cypherpunks@torproject.org>
    Date: Mon, 8 May 2017 11:42:07 +0000
    Subject: [PATCH] Replace the relay status icons with CSS
    
    Closes #22416.
    ---
     css/style.css                    |  19 +++++++++++++++++++
     img/properties/offline_16x16.png | Bin 229 -> 0 bytes
     img/properties/online_16x16.png  | Bin 230 -> 0 bytes
     templates/details/bridge.html    |   4 ++--
     templates/details/router.html    |   4 ++--
     templates/search/do.html         |   4 ++--
     6 files changed, 25 insertions(+), 6 deletions(-)
     delete mode 100644 img/properties/offline_16x16.png
     delete mode 100644 img/properties/online_16x16.png
    
    diff --git a/css/style.css b/css/style.css
    index e4b3a81..c1c91c6 100644
    a b input { 
    4444    width:150px;
    4545}
    4646
     47.circle {
     48    display: inline-block;
     49    vertical-align: middle;
     50    background: #999999;
     51    width: 10px;
     52    height: 10px;
     53    -moz-border-radius: 50%;
     54    -webkit-border-radius: 50%;
     55    border-radius: 50%;
     56}
     57
     58.circle-online {
     59    background: #25d918;
     60}
     61
     62.circle-offline {
     63    background: #ff1515;
     64}
     65
    4766@media screen and (max-width: 980px) {
    4867    .nav-collapse ul {
    4968        padding-top:20px;
  • deleted file img/properties/offline_16x16.png

    diff --git a/img/properties/offline_16x16.png b/img/properties/offline_16x16.png
    deleted file mode 100644
    index 9af422bceb951ab05b9d421a21cd5c53607fea86..0000000000000000000000000000000000000000
    GIT binary patch
    literal 0
    HcmV?d00001
  • deleted file literal

    literal 229
    zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`k|nMYCBgY=CFO}lsSJ)O`AMk?
    zp1FzXsX?iUDV2pMQ*D5X+C5zyLn>}1{rUgjo>{e_v(d?6BcqOnjiI5yNsc2I9p3OC
    zxfU>UvBMt0j_FJv>)XQD7f3K%jNw0eLV=|#v|)!}4hNsUOY+4Yo>vRA3fda&1@C=3
    zp59<8$QE(gM5<qC;d2c;W;3D018y~JI<0QPdKWlCn~i1vv}^5ZHdj<spR;iOOa>+%
    Z2EQk=Sx=1{_<&Ag@O1TaS?83{1OV`uPCftt
    
    diff --git a/img/properties/online_16x16.png b/img/properties/online_16x16.png
    deleted file mode 100644
    index 37a4e5bcc42410877a8d418dcda6c0c70a48fcdc..0000000000000000000000000000000000000000
    GIT binary patch
    literal 0
    HcmV?d00001
  • templates/details/bridge.html

    literal 230
    zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`k|nMYCBgY=CFO}lsSJ)O`AMk?
    zp1FzXsX?iUDV2pMQ*D5XIy_w*Ln>}1{rUgjo>{e_v(d?6Bcsj<nXS>26uJaE7B}9I
    z?^wGq$i1;bSwNrl(f{pN<|UgmtlBBpHPMknWHm#f@(F>MxQ=6sBqgsnUwy#CT(7j}
    zZU1?OY$cuz%Q8*mRGrQT*0ANM9BSzO!4tvNs}{3Ba1~p+)ervA683l}Cr=A!dt*ix
    a35Fg?xvcNz(%nEeF?hQAxvX<aXaWF%XHE?O
    
    diff --git a/templates/details/bridge.html b/templates/details/bridge.html
    index c4b93c0..8c9b1b4 100644
    a b  
    11<h1>
    22    Details for: <%= relay.get('nickname') %>
    33    <% if (relay.get('running') === false) { %>
    4     <img class="tip" src="img/properties/offline_16x16.png" alt="Offline" title="This bridge is offline."/>
     4    <span class="tip circle circle-offline" title="This bridge is offline."></span>
    55    <% } else { %>
    6     <img class="tip" src="img/properties/online_16x16.png" alt="Running" title="This bridge is running."/>
     6    <span class="tip circle circle-online" title="This bridge is running."></span>
    77    <% } %>
    88</h1>
    99
  • templates/details/router.html

    diff --git a/templates/details/router.html b/templates/details/router.html
    index 76b8ff6..1c5b02e 100644
    a b  
    11<h1>
    22    Details for: <%= relay.get('nickname') %>
    33    <% if (relay.get('running') === false) { %>
    4     <img class="tip" src="img/properties/offline_16x16.png" alt="Offline" title="This relay is offline."/>
     4    <span class="tip circle circle-offline" title="This relay is offline."></span>
    55    <% } else { %>
    6     <img class="tip" src="img/properties/online_16x16.png" alt="Running" title="This relay is running."/>
     6    <span class="tip circle circle-online" title="This relay is running."></span>
    77    <% } %>
    88</h1>
    99
  • templates/search/do.html

    diff --git a/templates/search/do.html b/templates/search/do.html
    index 56d8396..41c3175 100644
    a b  
    7979                <% } %>
    8080            <td>
    8181            <% if (relay.get('running') === false) { %>
    82                 <img class="tip inline flags" src="img/properties/offline_16x16.png" alt="Currently offline" title="This relay is currently offline."/>
     82                <span class="tip circle circle-offline" title="This relay is offline."></span>
    8383            <% } else { %>
    84                 <img class="tip inline flags" src="img/properties/online_16x16.png" alt="Currently running" title="This relay is currently running."/>
     84                <span class="tip circle circle-online" title="This relay is running."></span>
    8585            <% } %>
    8686            </td>
    8787                        <td>