diff --git a/src/root/common.tt b/src/root/common.tt index 98227c6b..6a29a718 100644 --- a/src/root/common.tt +++ b/src/root/common.tt @@ -561,6 +561,7 @@ BLOCK includeFlot %] +
[% END; diff --git a/src/root/static/css/hydra.css b/src/root/static/css/hydra.css index 51fdfaf5..8bcc99c0 100644 --- a/src/root/static/css/hydra.css +++ b/src/root/static/css/hydra.css @@ -129,3 +129,13 @@ pre.taillog { max-height: 60em; overflow: hidden; } + +div.flot-tooltip { + display: none; + position: absolute; + border: 1px solid #fdd; + padding: 2px; + background-color: #fee; + opacity: 0.80; + z-index: 100; +} diff --git a/src/root/static/js/common.js b/src/root/static/js/common.js index 56315e88..e204ecb4 100644 --- a/src/root/static/js/common.js +++ b/src/root/static/js/common.js @@ -229,6 +229,23 @@ function showChart(id, dataUrl, yaxis) { } }); + $("#" + id + "-chart").bind("plothover", function (event, pos, item) { + if (item) { + var i = data[item.dataIndex]; + var date = new Date(i.timestamp * 1000); + var s = + "Build " + i.id + "