Status: Fix JSHint violations and commit settings
> jquery.zuul.js:19: Use the function form of "use strict".
> jquery.zuul.js:42: 'options' is already defined.
> jquery.zuul.js:619: 'app' is already defined.
> jquery.zuul.js:645: Missing semicolon.
> jquery.zuul.js:900: Missing semicolon.
> jquery.zuul.js:704: 'x' is defined but never used.
> zuul.app.js:22: 'default_layout' is not defined.
> zuul.app.js:37: '$container' is not defined.
> zuul.app.js:38: '$container' is not defined.
> zuul.app.js:38: 'default_layout' is not defined.
> zuul.app.js:20: 'zuul_build_dom' is defined but never used.
> zuul.app.js:42: 'zuul_start' is defined but never used.
Change-Id: I65b86f004ef1bb09651cd916630267ca297b2492
diff --git a/etc/status/public_html/zuul.app.js b/etc/status/public_html/zuul.app.js
index 640437b..6321af8 100644
--- a/etc/status/public_html/zuul.app.js
+++ b/etc/status/public_html/zuul.app.js
@@ -17,9 +17,11 @@
// License for the specific language governing permissions and limitations
// under the License.
+/*exported zuul_build_dom, zuul_start */
+
function zuul_build_dom($, container) {
// Build a default-looking DOM
- default_layout = '<div class="container">'
+ var default_layout = '<div class="container">'
+ '<h1>Zuul Status</h1>'
+ '<p>Real-time status monitor of Zuul, the pipeline manager between Gerrit and Workers.</p>'
+ '<div class="zuul-container" id="zuul-container">'
@@ -34,7 +36,7 @@
$(function ($) {
// DOM ready
- $container = $(container);
+ var $container = $(container);
$container.html(default_layout);
});
}