aboutsummaryrefslogtreecommitdiff
path: root/shardweb
diff options
context:
space:
mode:
Diffstat (limited to 'shardweb')
-rw-r--r--shardweb/assets/css/app.css4
-rw-r--r--shardweb/lib/templates/page/peer_list.html.eex4
2 files changed, 6 insertions, 2 deletions
diff --git a/shardweb/assets/css/app.css b/shardweb/assets/css/app.css
index e8d40d2..93cba41 100644
--- a/shardweb/assets/css/app.css
+++ b/shardweb/assets/css/app.css
@@ -9,3 +9,7 @@
color: #fff;
font-weight: bold;
}
+
+.conn_establishing {
+ color: #999;
+}
diff --git a/shardweb/lib/templates/page/peer_list.html.eex b/shardweb/lib/templates/page/peer_list.html.eex
index 09060a7..8b8b322 100644
--- a/shardweb/lib/templates/page/peer_list.html.eex
+++ b/shardweb/lib/templates/page/peer_list.html.eex
@@ -25,8 +25,8 @@
<th>Address</th>
<th>Port</th>
</tr>
- <%= for {{:inet, ip, port}, _pid, auth} <- conn_list() do %>
- <tr>
+ <%= for {{:inet, ip, port}, _pid, auth, state} <- conn_list() do %>
+ <tr class="<%= if state == :establishing do "conn_establishing" else "" end %>">
<td>
<%= case auth do %>
<% nil -> %><i class="fa fa-globe"></i> (anonymous)