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

[tor-commits] [atlas/master] More clearly distinguish between running and non-running relays



commit f38331fd23a53aa241508346136a132397e140eb
Author: Raphael Bergmann <raphael@xxxxxxxxxx>
Date:   Fri Mar 10 14:56:52 2017 +0100

    More clearly distinguish between running and non-running relays
---
 img/properties/offline_16x16.png | Bin 0 -> 229 bytes
 img/properties/online_16x16.png  | Bin 0 -> 230 bytes
 templates/search/do.html         |  10 ++++++++++
 3 files changed, 10 insertions(+)

diff --git a/img/properties/offline_16x16.png b/img/properties/offline_16x16.png
new file mode 100644
index 0000000..9af422b
Binary files /dev/null and b/img/properties/offline_16x16.png differ
diff --git a/img/properties/online_16x16.png b/img/properties/online_16x16.png
new file mode 100644
index 0000000..37a4e5b
Binary files /dev/null and b/img/properties/online_16x16.png differ
diff --git a/templates/search/do.html b/templates/search/do.html
index c237d61..51a2d82 100644
--- a/templates/search/do.html
+++ b/templates/search/do.html
@@ -54,6 +54,7 @@
 <table class="table table-bordered table-striped" id="torstatus_results">
 	<thead>
 		<tr>
+			<th style="width:16px;">&nbsp;</th>
 			<th>Nickname</th>
 			<th>Bandwidth</th>
 			<th>Uptime</th>
@@ -75,6 +76,13 @@
 		<% } else { %>
 			<tr class="odd">
 		<% } %>
+            <td>
+            <% if (relay.get('running') === false) { %>
+                <img class="tip inline flags" src="img/properties/offline_16x16.png" alt="Currently offline" title="This relay is currently offline."/>
+            <% } else { %>
+                <img class="tip inline flags" src="img/properties/online_16x16.png" alt="Currently running" title="This relay is currently running."/>
+            <% } %>
+            </td>
 			<td>
             <a href="#details/<%= relay.get('fingerprint') %>">
             <%= _.escape(relay.get('nickname')) %>
@@ -117,6 +125,8 @@
 	</tbody>
 	<tfoot>
 	<tr>
+        <th>
+        </th>
 		<th>
             <input type="text" id="nickname" name="nickname" placeholder="Nickname" class="search_init">
         </th>



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