diff options
author | Alex Auvolat <alex@adnab.me> | 2018-10-12 22:39:38 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2018-10-12 22:39:38 +0200 |
commit | 0ed802601812acd6ad764e6ffd5aacfd7e674553 (patch) | |
tree | 1b7fccb7fbf81a6822dd3313f00a940e441b90ed /shardweb | |
parent | eab3f9483b3659b1ad3572393d24652cac71c8b6 (diff) | |
download | shard-0ed802601812acd6ad764e6ffd5aacfd7e674553.tar.gz shard-0ed802601812acd6ad764e6ffd5aacfd7e674553.zip |
Connection management improvement, stuff
Diffstat (limited to 'shardweb')
-rw-r--r-- | shardweb/assets/css/app.css | 4 | ||||
-rw-r--r-- | shardweb/lib/templates/page/peer_list.html.eex | 4 |
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) |