aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorJames Barnett <noreply@jamesbarnett.xyz>2018-04-07 23:22:58 +0100
committerJames Barnett <noreply@jamesbarnett.xyz>2018-04-07 23:22:58 +0100
commit0bbe22dd69bbb149e9fed74c87e7fc75e181483e (patch)
tree49a5eea886885c7cb5f82d873044e9f626127e16 /views
parent1301d90e93af799a9054f133847ebf3cbda15f9d (diff)
downloadtplink-energy-monitor-0bbe22dd69bbb149e9fed74c87e7fc75e181483e.tar.xz
tplink-energy-monitor-0bbe22dd69bbb149e9fed74c87e7fc75e181483e.zip
Try to re-establish lost websocket connections
Diffstat (limited to 'views')
-rw-r--r--views/index.hbs11
1 files changed, 8 insertions, 3 deletions
diff --git a/views/index.hbs b/views/index.hbs
index d0210a7..6178c96 100644
--- a/views/index.hbs
+++ b/views/index.hbs
@@ -33,9 +33,14 @@
<div class="page-header">
<div class="row">
- <h1>
- <i class="fa fa-plug"></i> {{device.alias}}
- </h1>
+ <div class="col-sm-8">
+ <h1>
+ <i class="fa fa-plug"></i> {{device.alias}}
+ </h1>
+ </div>
+ <div class="col-sm-4">
+ <div id="connection-error" class="alert alert-danger" style="display:none">Connection lost. Attempting to re-establish...</div>
+ </div>
</div>
</div>