ui: add dcs to index

pull/98/head
Jack Pearkes 2014-04-27 10:42:21 -04:00
parent 4ac11b219d
commit 71ae55f665
2 changed files with 13 additions and 0 deletions

View File

@ -26,6 +26,13 @@ App.IndexRoute = Ember.Route.extend({
model: function() { model: function() {
return window.fixtures.dcs; return window.fixtures.dcs;
}, },
setupController: function(controller, model) {
controller.set('content', model);
controller.set('dcs', window.fixtures.dcs);
},
afterModel: function(dcs, transition) { afterModel: function(dcs, transition) {
if (dcs.get('length') === 1) { if (dcs.get('length') === 1) {
this.get('controllers.application').setDc(dcs[0]) this.get('controllers.application').setDc(dcs[0])

View File

@ -22,6 +22,12 @@
} }
} }
a {
button:active {
outline: none;
}
}
.no-margin { .no-margin {
margin: 0; margin: 0;