From 84d12b1368c86fbba42c91102b8d76c04d79d80e Mon Sep 17 00:00:00 2001 From: Luke Childs Date: Thu, 8 Sep 2016 18:46:24 +0100 Subject: [PATCH] Show bandwidth graph on node page --- assets/style.css | 10 ++++++++++ views/node.html | 7 +++++++ 2 files changed, 17 insertions(+) diff --git a/assets/style.css b/assets/style.css index 9f74d92..d58003e 100644 --- a/assets/style.css +++ b/assets/style.css @@ -212,6 +212,16 @@ dd.flag i { opacity: 0.3; } +.bandwidth small { + color: rgba(255, 255, 255, 0.75); +} + +pre { + background: rgba(255, 255, 255, 0.1); + margin: 0; + overflow: hidden; +} + .columns { -moz-columns: 2; columns: 2; diff --git a/views/node.html b/views/node.html index 3b14ff6..15cbb74 100644 --- a/views/node.html +++ b/views/node.html @@ -52,6 +52,13 @@ {% endif %} + {% if bandwidth %} +
+

Bandwidth (MB/s over the last month)

+
{{ bandwidth }}
+
+ {% endif %} +
{% if