2014-04-25 17:49:36 +00:00
|
|
|
|
|
|
|
//
|
|
|
|
// DC
|
|
|
|
//
|
|
|
|
|
|
|
|
App.DcView = Ember.View.extend({
|
|
|
|
templateName: 'dc',
|
2014-04-25 20:24:36 +00:00
|
|
|
classNames: 'dropdowns',
|
|
|
|
|
|
|
|
click: function(e){
|
|
|
|
if ($(e.target).is('.dropdowns')){
|
|
|
|
$('ul.dropdown-menu').hide();
|
|
|
|
}
|
|
|
|
}
|
2014-04-25 17:49:36 +00:00
|
|
|
})
|
|
|
|
|
|
|
|
//
|
|
|
|
// Services
|
|
|
|
//
|
|
|
|
App.ServicesView = Ember.View.extend({
|
|
|
|
templateName: 'services',
|
|
|
|
})
|
|
|
|
|
|
|
|
App.ServicesShowView = Ember.View.extend({
|
|
|
|
//
|
|
|
|
// We use the same template as we do for the services
|
|
|
|
// array and have a simple conditional to display the nested
|
|
|
|
// individual service resource.
|
|
|
|
//
|
|
|
|
templateName: 'service'
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
// Nodes
|
|
|
|
//
|
|
|
|
|
|
|
|
App.NodesView = Ember.View.extend({
|
|
|
|
templateName: 'nodes'
|
|
|
|
})
|
|
|
|
|
|
|
|
App.NodesShowView = Ember.View.extend({
|
|
|
|
//
|
|
|
|
// We use the same template as we do for the nodes
|
|
|
|
// array and have a simple conditional to display the nested
|
|
|
|
// individual node resource.
|
|
|
|
//
|
|
|
|
templateName: 'node'
|
|
|
|
})
|
2014-04-29 17:06:26 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
App.KvListView = Ember.View.extend({
|
|
|
|
templateName: 'kv'
|
|
|
|
})
|