summaryrefslogtreecommitdiffstats
path: root/ogcp/static/js/ogcp.js
diff options
context:
space:
mode:
Diffstat (limited to 'ogcp/static/js/ogcp.js')
-rw-r--r--ogcp/static/js/ogcp.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/ogcp/static/js/ogcp.js b/ogcp/static/js/ogcp.js
index 0dccd57..548122b 100644
--- a/ogcp/static/js/ogcp.js
+++ b/ogcp/static/js/ogcp.js
@@ -258,11 +258,13 @@ function updatePillStatus(scope, pill) {
$('[name="link"]', pill).remove()
if (link) {
+ let linkClasses = 'class="badge-danger badge-pill"';
if (link >= 1000) {
link = link / 1000
units = 'Gb/s'
+ linkClasses = '';
}
- $(pill).append('<b name="link"><br>' + link + ' ' + units + '</b>');
+ $(pill).append('<div name="link"><b ' + linkClasses + '>' + link + ' ' + units + '</b></div>');
}
}