initial commit

This commit is contained in:
git@daemon.de
2013-09-12 23:13:49 +02:00
parent 874ee3cdab
commit 5992bf159b
50 changed files with 69273 additions and 0 deletions

49
js/router.js Normal file
View File

@@ -0,0 +1,49 @@
App.Router.map(function() {
this.resource('assets', function() {
this.route('asset', { path: ':asset_id' });
this.route('new');
});
this.resource('successors', function() {
this.route('successor', { path: ':successor_id' });
this.route('new');
});
this.route('self');
this.route('testament');
this.route('about');
this.resource('data', function() {
this.route('export');
this.route('import');
});
});
App.AssetsRoute = Ember.Route.extend({
model: function() {
return App.Asset.find();
}
});
App.SelfRoute = Ember.Route.extend({
setupController: function(controller) {
controller.set('model', App.Self.find(0));
}
});
App.DataImportRoute = Ember.Route.extend({
setupController: function(controller) {
controller.set('model', App.Import.find(0));
}
});
App.SuccessorsRoute = Ember.Route.extend({
model: function() {
return App.Successor.find();
}
});