2014-04-21 20:36:50 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<title>Consul</title>
|
|
|
|
<link rel="stylesheet" href="static/bootstrap.min.css">
|
2014-04-22 18:11:54 +00:00
|
|
|
<link rel="stylesheet" href="static/base.css">
|
2014-04-21 20:36:50 +00:00
|
|
|
</head>
|
|
|
|
<body>
|
2014-04-23 18:01:42 +00:00
|
|
|
|
|
|
|
<div class="container">
|
|
|
|
<div class="col-md-12">
|
|
|
|
<div id="app">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2014-04-21 20:36:50 +00:00
|
|
|
<script type="text/x-handlebars">
|
|
|
|
{{outlet}}
|
|
|
|
</script>
|
|
|
|
|
2014-04-23 18:01:42 +00:00
|
|
|
|
|
|
|
<script type="text/x-handlebars" data-template-name="default_layout">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12 col-sm-12 topbar">
|
|
|
|
|
|
|
|
<div class="col-md-1 col-sm-2">
|
|
|
|
<a href="#"><div class="top-brand"></div></a>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-md-2 col-sm-3">
|
2014-04-24 17:47:14 +00:00
|
|
|
{{#link-to 'services' controllers.application.getDc class='btn btn-default'}}Services{{/link-to}}
|
2014-04-23 18:01:42 +00:00
|
|
|
</div>
|
2014-04-24 17:47:14 +00:00
|
|
|
|
2014-04-23 18:01:42 +00:00
|
|
|
<div class="col-md-2 col-sm-3">
|
2014-04-24 17:47:14 +00:00
|
|
|
{{#link-to 'nodes' controllers.application.getDc class='btn btn-default'}}Nodes{{/link-to}}
|
2014-04-23 18:01:42 +00:00
|
|
|
</div>
|
2014-04-24 17:47:14 +00:00
|
|
|
|
2014-04-23 18:01:42 +00:00
|
|
|
<div class="col-md-2 col-sm-3">
|
|
|
|
<a class="btn btn-default" href="#">Key/Value</a>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-md-2 col-md-offset-1 col-sm-3 col-sm-offset-0">
|
|
|
|
<a class="btn btn-warning" href="#">5 checks failing</a>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-md-2 col-sm-3">
|
|
|
|
<a class="btn btn-dropdown btn-default" href="#">
|
|
|
|
us-east-1
|
|
|
|
<span class="caret"></span>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{yield}}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<script type="text/x-handlebars" id="services">
|
2014-04-24 17:47:14 +00:00
|
|
|
<div class="col-md-5">
|
|
|
|
|
|
|
|
{{#each service in services}}
|
2014-04-23 18:01:42 +00:00
|
|
|
|
|
|
|
<div class="list-group-item">
|
2014-04-24 17:47:14 +00:00
|
|
|
<div {{bind-attr class="service.hasFailingChecks:bg-orange:bg-green :list-bar"}}></div>
|
2014-04-23 18:01:42 +00:00
|
|
|
<h4 class="list-group-item-heading">
|
2014-04-24 17:47:14 +00:00
|
|
|
{{#link-to 'service' controllers.application.getDc service.Name class='subtle'}}{{service.Name}}{{/link-to}}
|
|
|
|
<small>{{service.Name}}</small>
|
2014-04-23 18:01:42 +00:00
|
|
|
<div class="heading-helper">
|
2014-04-24 17:47:14 +00:00
|
|
|
<a class="subtle" href="#">{{service.checkMessage}}</a>
|
2014-04-23 18:01:42 +00:00
|
|
|
</div>
|
|
|
|
</h4>
|
|
|
|
<ul class="list-inline">
|
2014-04-24 17:47:14 +00:00
|
|
|
{{#each node in service.Nodes }}
|
2014-04-23 18:01:42 +00:00
|
|
|
<li>{{#link-to 'node' controllers.application.getDc node class='subtle'}}{{node}}{{/link-to}}</li>
|
|
|
|
{{/each}}
|
|
|
|
</ul>
|
|
|
|
</div>
|
2014-04-24 17:47:14 +00:00
|
|
|
|
2014-04-23 18:01:42 +00:00
|
|
|
{{/each}}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
2014-04-24 17:47:14 +00:00
|
|
|
<div class="col-md-6 col-md-offset-1">
|
|
|
|
<div class="row">
|
|
|
|
{{#if model}}
|
|
|
|
<h2 class="no-margin">{{ model.1.ServiceName }}</h2>
|
|
|
|
<hr>
|
2014-04-24 18:02:26 +00:00
|
|
|
<h5>Tags</h5>
|
|
|
|
<p>Pending...</p>
|
|
|
|
|
2014-04-24 17:47:14 +00:00
|
|
|
<h5>Nodes</h5>
|
|
|
|
|
|
|
|
{{#each node in model }}
|
|
|
|
|
|
|
|
<div {{bind-attr class=":panel node.hasFailingChecks:panel-warning:panel-success"}}>
|
|
|
|
<div class="panel-bar"></div>
|
|
|
|
<div class="panel-heading">
|
|
|
|
<h3 class="panel-title">
|
|
|
|
{{node.Node}}
|
|
|
|
<small>{{node.Address}}</small>
|
|
|
|
<span class="panel-note">{{node.checkMessage}}</span>
|
|
|
|
</h3>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="panel-body">
|
2014-04-24 17:58:03 +00:00
|
|
|
<ul class="list-unstyled list-broken">
|
|
|
|
{{#each check in node.Checks }}
|
|
|
|
<li>
|
|
|
|
<h4>{{ check.Name }} <small>{{ check.CheckID }}</small> <span class="pull-right"><small>{{check.Status}}</small></h4>
|
|
|
|
</li>
|
|
|
|
{{/each}}
|
|
|
|
</ul>
|
2014-04-24 17:47:14 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{/each}}
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
2014-04-23 18:01:42 +00:00
|
|
|
</div>
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
2014-04-21 20:36:50 +00:00
|
|
|
<script type="text/x-handlebars" id="index">
|
2014-04-23 18:01:42 +00:00
|
|
|
<div class="col-md-8 col-md-offset-2 vertical-center">
|
|
|
|
{{#each item in model}}
|
|
|
|
<a {{action 'selectDc' item}}>
|
|
|
|
<div class="panel panel-success panel-link">
|
|
|
|
<div class="panel-bar"></div>
|
|
|
|
<div class="panel-heading">
|
|
|
|
<h3 class="panel-title">
|
|
|
|
{{item}}
|
|
|
|
<small>{{item}}</small>
|
|
|
|
<span class="panel-note">all checks passing</span>
|
|
|
|
</h3>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</a>
|
|
|
|
{{/each}}
|
|
|
|
</div>
|
2014-04-21 20:36:50 +00:00
|
|
|
</script>
|
|
|
|
|
2014-04-23 20:19:33 +00:00
|
|
|
<script src="javascripts/libs/jquery-1.10.2.js"></script>
|
|
|
|
<script src="javascripts/libs/handlebars-1.1.2.js"></script>
|
|
|
|
<script src="javascripts/libs/ember-1.5.0.js"></script>
|
2014-04-23 18:01:42 +00:00
|
|
|
<script src="javascripts/fixtures.js"></script>
|
2014-04-23 20:19:33 +00:00
|
|
|
<script src="javascripts/app.js"></script>
|
2014-04-21 20:36:50 +00:00
|
|
|
|
|
|
|
<!-- to activate the test runner, add the "?test" query string parameter -->
|
|
|
|
<script src="tests/runner.js"></script>
|
|
|
|
</body>
|
|
|
|
</html>
|