diff --git a/stack/monitor2/buildout.cfg b/stack/monitor2/buildout.cfg index c2ed97e02db877fae944f81a0bbd9e615a451187..f68769488113bac1506e2d7b5e02ef39172d9b30 100644 --- a/stack/monitor2/buildout.cfg +++ b/stack/monitor2/buildout.cfg @@ -80,7 +80,7 @@ md5sum = a18ab932e5e2e656995f47c7d4a7853a [monitor-web-monitor-js] <= monitor-download-base filename = monitor.js.in -md5sum = 65799bea0e09147ef9cbcbb46fcb1c1d +md5sum = 3451788c49d3664cd9b72551fab34a9b [monitor-web-monitor-logout-cgi] recipe = slapos.recipe.template:jinja2 diff --git a/stack/monitor2/monitor.js.in b/stack/monitor2/monitor.js.in index 92a74e1df6fdbabdb0b4900303a82f6ea752cf13..cb27b6cd46164a32e09687bd81eaaa948c01507f 100644 --- a/stack/monitor2/monitor.js.in +++ b/stack/monitor2/monitor.js.in @@ -2,7 +2,20 @@ (function () { "use strict"; - var monitor_title = '{{ dumps(monitor_title)[5:-1] }}'; + var monitor_title = '{{ dumps(monitor_title)[5:-1] }}', + RSS_ICON_DATA_URI = [ + "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIj8+CjwhRE9DVFlQR", + "SBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cu", + "dzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+CjxzdmcgeG1sbnM", + "9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2ZXJzaW9uPSIxLjEiIHdpZHRoPS", + "IxMjhweCIgaGVpZ2h0PSIxMjhweCIgdmlld0JveD0iMCAwIDI1NiAyNTYiPgo8cmVjd", + "CB3aWR0aD0iMjU2IiBoZWlnaHQ9IjI1NiIgeD0iMCIgIHk9IjAiICBmaWxsPSIjRjQ5", + "QzUyIi8+CjxjaXJjbGUgY3g9IjY4IiBjeT0iMTg5IiByPSIyNCIgZmlsbD0iI0ZGRiI", + "vPgo8cGF0aCBkPSJNMTYwIDIxM2gtMzRhODIgODIgMCAwIDAgLTgyIC04MnYtMzRhMT", + "E2IDExNiAwIDAgMSAxMTYgMTE2eiIgZmlsbD0iI0ZGRiIvPgo8cGF0aCBkPSJNMTg0I", + "DIxM0ExNDAgMTQwIDAgMCAwIDQ0IDczIFYgMzhhMTc1IDE3NSAwIDAgMSAxNzUgMTc1", + "eiIgZmlsbD0iI0ZGRiIvPgo8L3N2Zz4K" + ].join(""); function loadJson(url) { /*global XMLHttpRequest */ @@ -145,7 +158,11 @@ function bootstrap(root) { var element_list = htmlToElementList([ - "<header><a href=\"\" class=\"as-button\">Refresh</a> <a href=\"/logout\" class=\"as-button\">Logout</a></header>", + "<header>", + " <a href=\"\" class=\"as-button\">Refresh</a>", + " <a href=\"/logout\" class=\"as-button\">Logout</a>", + " <a href=\"/feed\"><img src=\"" + RSS_ICON_DATA_URI + "\" style=\"width: 10mm; height: 10mm; vertical-align: middle;\" alt=\"[RSS Feed]\" /></a>", + "</header>", "<h1>" + monitor_title + "</h1>", "<h2>System health status</h2>", "<p>This interface allow to see the status of several features, it may show problems and sometimes provides a way to fix them.</p>",